diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-06-01 13:22:42 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-01 12:12:40 -0400 |
commit | 7b954ed7529b6bae8712345dd9d22afa57b96dca (patch) | |
tree | f9a0a1bea884ca5e9b9e896c56abe4a4df65a07d /net/dsa | |
parent | 97fcc193f67e584dc6564767c6e186fe1ecd71d2 (diff) | |
download | lwn-7b954ed7529b6bae8712345dd9d22afa57b96dca.tar.gz lwn-7b954ed7529b6bae8712345dd9d22afa57b96dca.zip |
net: dsa: make function ksz_rcv static
function ksz_rcv can be made static as it does not need to be
in global scope. Reformat arguments to make it checkpatch warning
free too.
Cleans up sparse warning: "symbol 'ksz_rcv' was not declared. Should
it be static?"
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Woojung Huh <Woojung.Huh@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/tag_ksz.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dsa/tag_ksz.c b/net/dsa/tag_ksz.c index 0b08a40b493a..dfcd2fff5b13 100644 --- a/net/dsa/tag_ksz.c +++ b/net/dsa/tag_ksz.c @@ -72,8 +72,9 @@ static struct sk_buff *ksz_xmit(struct sk_buff *skb, struct net_device *dev) return nskb; } -struct sk_buff *ksz_rcv(struct sk_buff *skb, struct net_device *dev, - struct packet_type *pt, struct net_device *orig_dev) +static struct sk_buff *ksz_rcv(struct sk_buff *skb, struct net_device *dev, + struct packet_type *pt, + struct net_device *orig_dev) { struct dsa_switch_tree *dst = dev->dsa_ptr; struct dsa_switch *ds; |