diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2018-03-31 02:11:41 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-31 23:20:48 -0400 |
commit | eeb0a2a526d816253705977033e98fdfbab32387 (patch) | |
tree | 445aa871e27f3dfe12e54783bc5225d8a14a736b | |
parent | 8bde261e535257e81087d39ff808414e2f5aa39d (diff) |
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 { | |||
165 | int refcount; | 165 | int refcount; |
166 | }; | 166 | }; |
167 | 167 | ||
168 | bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto) | 168 | static bool vlan_hw_filter_capable(const struct net_device *dev, __be16 proto) |
169 | { | 169 | { |
170 | if (proto == htons(ETH_P_8021Q) && | 170 | if (proto == htons(ETH_P_8021Q) && |
171 | dev->features & NETIF_F_HW_VLAN_CTAG_FILTER) | 171 | dev->features & NETIF_F_HW_VLAN_CTAG_FILTER) |