Commit 92c7b0de authored by Mahesh Bandewar's avatar Mahesh Bandewar Committed by David S. Miller

ipvlan: fix sparse warnings

Fix sparse warnings reported by kbuild robot

drivers/net/ipvlan/ipvlan_main.c:172:13: warning: symbol 'ipvlan_start_xmit' was not declared. Should it be static?
drivers/net/ipvlan/ipvlan_main.c:256:33: warning: incorrect type in initializer (different address spaces)
drivers/net/ipvlan/ipvlan_main.c:256:33:    expected void const [noderef] <asn:3>*__vpp_verify
drivers/net/ipvlan/ipvlan_main.c:256:33:    got struct ipvl_pcpu_stats *<noident>
drivers/net/ipvlan/ipvlan_main.c:544:5: warning: symbol 'ipvlan_link_register' was not declared. Should it be static
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarMahesh Bandewar <maheshb@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1585a8ae
...@@ -169,7 +169,8 @@ static int ipvlan_stop(struct net_device *dev) ...@@ -169,7 +169,8 @@ static int ipvlan_stop(struct net_device *dev)
return 0; return 0;
} }
netdev_tx_t ipvlan_start_xmit(struct sk_buff *skb, struct net_device *dev) static netdev_tx_t ipvlan_start_xmit(struct sk_buff *skb,
struct net_device *dev)
{ {
const struct ipvl_dev *ipvlan = netdev_priv(dev); const struct ipvl_dev *ipvlan = netdev_priv(dev);
int skblen = skb->len; int skblen = skb->len;
...@@ -541,7 +542,7 @@ static struct rtnl_link_ops ipvlan_link_ops = { ...@@ -541,7 +542,7 @@ static struct rtnl_link_ops ipvlan_link_ops = {
.dellink = ipvlan_link_delete, .dellink = ipvlan_link_delete,
}; };
int ipvlan_link_register(struct rtnl_link_ops *ops) static int ipvlan_link_register(struct rtnl_link_ops *ops)
{ {
return rtnl_link_register(ops); return rtnl_link_register(ops);
} }
......
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