aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorCong Wang <amwang@redhat.com>2013-01-22 16:29:39 -0500
committerDavid S. Miller <davem@davemloft.net>2013-01-28 18:32:54 -0500
commit5fbee843c32e5de2d8af68ba0bdd113bb0af9d86 (patch)
tree1b5af9ab4177611b00412abe3ee3217030740307 /include/linux/netdevice.h
parentce4a600e477a4da600c8056897e71e2f4a8c5ac0 (diff)
netpoll: add RCU annotation to npinfo field
dev->npinfo is protected by RCU. This fixes the following sparse warnings: net/core/netpoll.c:177:48: error: incompatible types in comparison expression (different address spaces) net/core/netpoll.c:200:35: error: incompatible types in comparison expression (different address spaces) net/core/netpoll.c:221:35: error: incompatible types in comparison expression (different address spaces) net/core/netpoll.c:327:18: error: incompatible types in comparison expression (different address spaces) Cc: Eric Dumazet <eric.dumazet@gmail.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 549f5ad2055d..85b0949d9946 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1272,7 +1272,7 @@ struct net_device {
1272 void (*destructor)(struct net_device *dev); 1272 void (*destructor)(struct net_device *dev);
1273 1273
1274#ifdef CONFIG_NETPOLL 1274#ifdef CONFIG_NETPOLL
1275 struct netpoll_info *npinfo; 1275 struct netpoll_info __rcu *npinfo;
1276#endif 1276#endif
1277 1277
1278#ifdef CONFIG_NET_NS 1278#ifdef CONFIG_NET_NS