diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-03-31 08:11:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-01 05:20:48 +0200 |
commit | eeb0a2a526d816253705977033e98fdfbab32387 (patch) | |
tree | 445aa871e27f3dfe12e54783bc5225d8a14a736b | |
parent | Merge tag 'mlx5-updates-2018-03-30' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
download | linux-eeb0a2a526d816253705977033e98fdfbab32387.tar.xz 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>
-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) |