summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-04-11 21:00:35 +0200
committerDavid S. Miller <davem@davemloft.net>2013-04-12 21:01:27 +0200
commit6706c82e39a984a02696e816cbcc8b82a21b3f67 (patch)
treeada6a0fdebc731bb0c7ac8731f73a82da1936f01 /drivers
parentxen-netback: switch to use skb_partial_csum_set() (diff)
downloadlinux-6706c82e39a984a02696e816cbcc8b82a21b3f67.tar.xz
linux-6706c82e39a984a02696e816cbcc8b82a21b3f67.zip
vxlan: fix some sparse warnings
Fixes following warning: drivers/net/vxlan.c:406:6: warning: symbol 'vxlan_fdb_free' was not declared. Should it be static? drivers/net/vxlan.c:1111:37: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/vxlan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 9a6471593ca3..ee02ecd6ae61 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -403,7 +403,7 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan,
return 0;
}
-void vxlan_fdb_free(struct rcu_head *head)
+static void vxlan_fdb_free(struct rcu_head *head)
{
struct vxlan_fdb *f = container_of(head, struct vxlan_fdb, rcu);
@@ -1108,7 +1108,7 @@ static netdev_tx_t vxlan_xmit(struct sk_buff *skb, struct net_device *dev)
group.remote_vni = vxlan->vni;
group.remote_ip = vxlan->gaddr;
group.remote_ifindex = vxlan->link;
- group.remote_next = 0;
+ group.remote_next = NULL;
rdst0 = &group;
if (group.remote_ip == htonl(INADDR_ANY) &&