[PATCH net-next] vlan: vlan_hw_filter_capable() can be static

Subsystems: networking [general], the rest

STALE3120d

2 messages, 2 authors, 2018-04-01 · open the first message on its own page

[PATCH net-next] vlan: vlan_hw_filter_capable() can be static

From: Wei Yongjun <hidden>
Date: 2018-03-31 06:06:37

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 <redacted>
---
 net/8021q/vlan_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/8021q/vlan_core.c b/net/8021q/vlan_core.c
index c8d7abd..4f60e86 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)

Re: [PATCH net-next] vlan: vlan_hw_filter_capable() can be static

From: David Miller <davem@davemloft.net>
Date: 2018-04-01 03:21:12

From: Wei Yongjun <redacted>
Date: Sat, 31 Mar 2018 06:11:41 +0000
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 <redacted>
Applied, thank you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help