Commit 5fbee843 authored by Cong Wang's avatar Cong Wang Committed by David S. Miller

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: default avatarCong Wang <amwang@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ce4a600e
...@@ -1272,7 +1272,7 @@ struct net_device { ...@@ -1272,7 +1272,7 @@ struct net_device {
void (*destructor)(struct net_device *dev); void (*destructor)(struct net_device *dev);
#ifdef CONFIG_NETPOLL #ifdef CONFIG_NETPOLL
struct netpoll_info *npinfo; struct netpoll_info __rcu *npinfo;
#endif #endif
#ifdef CONFIG_NET_NS #ifdef CONFIG_NET_NS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment