Commit 6706c82e authored by Wei Yongjun's avatar Wei Yongjun Committed by David S. Miller

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent bea89336
...@@ -403,7 +403,7 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan, ...@@ -403,7 +403,7 @@ static int vxlan_fdb_create(struct vxlan_dev *vxlan,
return 0; 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); 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) ...@@ -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_vni = vxlan->vni;
group.remote_ip = vxlan->gaddr; group.remote_ip = vxlan->gaddr;
group.remote_ifindex = vxlan->link; group.remote_ifindex = vxlan->link;
group.remote_next = 0; group.remote_next = NULL;
rdst0 = &group; rdst0 = &group;
if (group.remote_ip == htonl(INADDR_ANY) && if (group.remote_ip == htonl(INADDR_ANY) &&
......
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