diff options
author | Pravin B Shelar <pshelar@nicira.com> | 2013-06-20 03:26:31 -0400 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2013-06-25 12:30:42 -0400 |
commit | 60d9d4c6dbd1bad80fb9a77775fc704302a563c9 (patch) | |
tree | b37828d2c6f0c663721e0fbd0360e9f26f0bd5fc | |
parent | 234f5b73794435f065c5fb13371415fe46956a4b (diff) |
vxlan: Fix sparse warnings.
Fix following sparse warnings.
drivers/net/vxlan.c:238:44: warning: incorrect type in argument 3 (different base types)
drivers/net/vxlan.c:238:44: expected restricted __be32 [usertype] value
drivers/net/vxlan.c:238:44: got unsigned int const [unsigned] [usertype] remote_vni
drivers/net/vxlan.c:1735:18: warning: incorrect type in initializer (different signedness)
drivers/net/vxlan.c:1735:18: expected int *id
drivers/net/vxlan.c:1735:18: got unsigned int static [toplevel] *<noident>
Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | drivers/net/vxlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 3b03cd4bdf37..212a25601fa6 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c | |||
@@ -78,7 +78,7 @@ static bool log_ecn_error = true; | |||
78 | module_param(log_ecn_error, bool, 0644); | 78 | module_param(log_ecn_error, bool, 0644); |
79 | MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN"); | 79 | MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN"); |
80 | 80 | ||
81 | static unsigned int vxlan_net_id; | 81 | static int vxlan_net_id; |
82 | 82 | ||
83 | /* per UDP socket information */ | 83 | /* per UDP socket information */ |
84 | struct vxlan_sock { | 84 | struct vxlan_sock { |
@@ -250,7 +250,7 @@ static int vxlan_fdb_info(struct sk_buff *skb, struct vxlan_dev *vxlan, | |||
250 | nla_put_be16(skb, NDA_PORT, rdst->remote_port)) | 250 | nla_put_be16(skb, NDA_PORT, rdst->remote_port)) |
251 | goto nla_put_failure; | 251 | goto nla_put_failure; |
252 | if (rdst->remote_vni != vxlan->default_dst.remote_vni && | 252 | if (rdst->remote_vni != vxlan->default_dst.remote_vni && |
253 | nla_put_be32(skb, NDA_VNI, rdst->remote_vni)) | 253 | nla_put_u32(skb, NDA_VNI, rdst->remote_vni)) |
254 | goto nla_put_failure; | 254 | goto nla_put_failure; |
255 | if (rdst->remote_ifindex && | 255 | if (rdst->remote_ifindex && |
256 | nla_put_u32(skb, NDA_IFINDEX, rdst->remote_ifindex)) | 256 | nla_put_u32(skb, NDA_IFINDEX, rdst->remote_ifindex)) |