vlan: vlan_hw_filter_capable() can be static
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 31 Mar 2018 06:11:41 +0000 (06:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Apr 2018 03:20:48 +0000 (23:20 -0400)
Fixes the following sparse warning:

net/8021q/vlan_core.c:168:6: warning:
 symbol 'vlan_hw_filter_capable' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c

index c8d7abdc046306da668d3733d42550e7a31081dc..4f60e86f4b8d33618c3ef26058c8aa94a2a1bbcc 100644 (file)
@@ -165,7 +165,7 @@ struct vlan_vid_info {
        int refcount;
 };
 
-bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto)
+static bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto)
 {
        if (proto == htons(ETH_P_8021Q) &&
            dev->features & NETIF_F_HW_VLAN_CTAG_FILTER)