]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
netpoll: add RCU annotation to npinfo field
authorCong Wang <amwang@redhat.com>
Tue, 22 Jan 2013 21:29:39 +0000 (21:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2013 23:32:54 +0000 (18:32 -0500)
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>
include/linux/netdevice.h

index 549f5ad2055d06f0f4f0580d0068e41f9e3271cf..85b0949d9946808b7f5dbc01c3935691f94fd9dc 100644 (file)
@@ -1272,7 +1272,7 @@ struct net_device {
        void (*destructor)(struct net_device *dev);
 
 #ifdef CONFIG_NETPOLL
-       struct netpoll_info     *npinfo;
+       struct netpoll_info __rcu       *npinfo;
 #endif
 
 #ifdef CONFIG_NET_NS