net: dsa: make dsa_pack_type static
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 29 Aug 2014 19:42:07 +0000 (12:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Sep 2014 03:41:45 +0000 (20:41 -0700)
net/dsa/dsa.c:624:20: sparse: symbol 'dsa_pack_type' was not declared.
Should it be static?

Fixes: 3e8a72d1dae374 ("net: dsa: reduce number of protocol hooks")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c

index 484f695351a7fe95b9615fc4fcb6e988cc073768..61f145c445557b6aea185dc1d0c4a7504d582888 100644 (file)
@@ -629,7 +629,7 @@ static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev,
        return dst->ops->rcv(skb, dev, pt, orig_dev);
 }
 
-struct packet_type dsa_pack_type __read_mostly = {
+static struct packet_type dsa_pack_type __read_mostly = {
        .type   = cpu_to_be16(ETH_P_XDSA),
        .func   = dsa_switch_rcv,
 };