Commit 8eea00a4 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

[IPVS]: fix sparse gfp nocast warnings

From: Randy Dunlap <rdunlap@xenotime.net>

Fix implicit nocast warnings in ip_vs code:
net/ipv4/ipvs/ip_vs_app.c:631:54: warning: implicit cast to nocast type
Signed-off-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f4a19a56
...@@ -832,7 +832,7 @@ extern void ip_vs_app_inc_put(struct ip_vs_app *inc); ...@@ -832,7 +832,7 @@ extern void ip_vs_app_inc_put(struct ip_vs_app *inc);
extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb); extern int ip_vs_app_pkt_out(struct ip_vs_conn *, struct sk_buff **pskb);
extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb); extern int ip_vs_app_pkt_in(struct ip_vs_conn *, struct sk_buff **pskb);
extern int ip_vs_skb_replace(struct sk_buff *skb, int pri, extern int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri,
char *o_buf, int o_len, char *n_buf, int n_len); char *o_buf, int o_len, char *n_buf, int n_len);
extern int ip_vs_app_init(void); extern int ip_vs_app_init(void);
extern void ip_vs_app_cleanup(void); extern void ip_vs_app_cleanup(void);
......
...@@ -604,7 +604,7 @@ static struct file_operations ip_vs_app_fops = { ...@@ -604,7 +604,7 @@ static struct file_operations ip_vs_app_fops = {
/* /*
* Replace a segment of data with a new segment * Replace a segment of data with a new segment
*/ */
int ip_vs_skb_replace(struct sk_buff *skb, int pri, int ip_vs_skb_replace(struct sk_buff *skb, unsigned int __nocast pri,
char *o_buf, int o_len, char *n_buf, int n_len) char *o_buf, int o_len, char *n_buf, int n_len)
{ {
struct iphdr *iph; struct iphdr *iph;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment