From: Wei Yongjun Date: Sat, 31 Mar 2018 06:11:41 +0000 (+0000) Subject: vlan: vlan_hw_filter_capable() can be static X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=eeb0a2a526d816253705977033e98fdfbab32387;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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)