aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-08-29 15:42:07 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-01 23:41:45 -0400
commit61b7363ffa48b36e2ff086c2d2524e40d3766571 (patch)
tree7771ed7e3377eed5982d1187767dfe5f263536db /net
parent0f23124aaacd68e11271f72a13f3a8e8904c26d3 (diff)
net: dsa: make dsa_pack_type static
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>
Diffstat (limited to 'net')
-rw-r--r--net/dsa/dsa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dsa/dsa.c b/net/dsa/dsa.c
index 484f695351a7..61f145c44555 100644
--- a/net/dsa/dsa.c
+++ b/net/dsa/dsa.c
@@ -629,7 +629,7 @@ static int dsa_switch_rcv(struct sk_buff *skb, struct net_device *dev,
629 return dst->ops->rcv(skb, dev, pt, orig_dev); 629 return dst->ops->rcv(skb, dev, pt, orig_dev);
630} 630}
631 631
632struct packet_type dsa_pack_type __read_mostly = { 632static struct packet_type dsa_pack_type __read_mostly = {
633 .type = cpu_to_be16(ETH_P_XDSA), 633 .type = cpu_to_be16(ETH_P_XDSA),
634 .func = dsa_switch_rcv, 634 .func = dsa_switch_rcv,
635}; 635};