diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-03-31 06:11:41 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-31 23:20:48 -0400 |
commit | eeb0a2a526d816253705977033e98fdfbab32387 (patch) | |
tree | 445aa871e27f3dfe12e54783bc5225d8a14a736b /net/8021q | |
parent | 8bde261e535257e81087d39ff808414e2f5aa39d (diff) | |
download | blackbird-obmc-linux-eeb0a2a526d816253705977033e98fdfbab32387.tar.gz blackbird-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')
-rw-r--r-- | net/8021q/vlan_core.c | 2 |
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) |