]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: dsa: make function ksz_rcv static
authorColin Ian King <colin.king@canonical.com>
Thu, 1 Jun 2017 12:22:42 +0000 (13:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 16:12:40 +0000 (12:12 -0400)
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>
net/dsa/tag_ksz.c

index 0b08a40b493aba46012b217ea93c94b8c48730e1..dfcd2fff5b137cf8459fcc8a766dfa2f17ce8c2a 100644 (file)
@@ -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;