aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2010-02-16 10:21:08 -0500
committerDavid S. Miller <davem@davemloft.net>2010-02-17 02:05:38 -0500
commit47d742752df4c1088589d4424840bc761613ab2a (patch)
tree186eec2c69a1f7149e08d354c36a34c21b58fa4f /include
parent7d720c3e4f0c4fc152a6bf17e24244a3c85412d2 (diff)
percpu: add __percpu sparse annotations to net drivers
Add __percpu sparse annotations to net drivers. These annotations are to make sparse consider percpu variables to be in a different address space and warn if accessed without going through percpu accessors. This patch doesn't affect normal builds. Signed-off-by: Tejun Heo <tj@kernel.org> Acked-by: David S. Miller <davem@davemloft.net> Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/if_macvlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/if_macvlan.h b/include/linux/if_macvlan.h
index 51f1512045e9..f9cb9ba1475d 100644
--- a/include/linux/if_macvlan.h
+++ b/include/linux/if_macvlan.h
@@ -30,7 +30,7 @@ struct macvlan_dev {
30 struct hlist_node hlist; 30 struct hlist_node hlist;
31 struct macvlan_port *port; 31 struct macvlan_port *port;
32 struct net_device *lowerdev; 32 struct net_device *lowerdev;
33 struct macvlan_rx_stats *rx_stats; 33 struct macvlan_rx_stats __percpu *rx_stats;
34 enum macvlan_mode mode; 34 enum macvlan_mode mode;
35 int (*receive)(struct sk_buff *skb); 35 int (*receive)(struct sk_buff *skb);
36 int (*forward)(struct net_device *dev, struct sk_buff *skb); 36 int (*forward)(struct net_device *dev, struct sk_buff *skb);