Skip to content

Commit

Permalink
vlan: vlan_hw_filter_capable() can be static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Apr 1, 2018
1 parent 8bde261 commit eeb0a2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/8021q/vlan_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit eeb0a2a

Please sign in to comment.