Skip to contentSkip to conversation

vlan: vlan_hw_filter_capable() can be static

PATCH Applied Wei Yongjun 2 participants 2 messages Mar 31, 2018 – Apr 1, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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?

---
 net/8021q/vlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/8021q/vlan_core.c +1 -1
index c8d7abd..4f60e86 100644
@@ -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)
maintainer Applied
#1 lore raw

From: Wei Yongjun <[email protected]>
Date: Sat, 31 Mar 2018 06:11:41 +0000

Quoted 6 lines

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?

Applied, thank you.