summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlan_core.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-03-31 06:11:41 +0000
committerDavid S. Miller <davem@davemloft.net>2018-03-31 23:20:48 -0400
commiteeb0a2a526d816253705977033e98fdfbab32387 (patch)
tree445aa871e27f3dfe12e54783bc5225d8a14a736b /net/8021q/vlan_core.c
parent8bde261e535257e81087d39ff808414e2f5aa39d (diff)
downloadtalos-obmc-linux-eeb0a2a526d816253705977033e98fdfbab32387.tar.gz
talos-obmc-linux-eeb0a2a526d816253705977033e98fdfbab32387.zip
vlan: vlan_hw_filter_capable() can be static
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>
Diffstat (limited to 'net/8021q/vlan_core.c')
-rw-r--r--net/8021q/vlan_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c
index c8d7abdc0463..4f60e86f4b8d 100644
--- a/net/8021q/vlan_core.c
+++ b/net/8021q/vlan_core.c
@@ -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)
OpenPOWER on IntegriCloud