]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commit5fbee843c32e5de2d8af68ba0bdd113bb0af9d86
tree1b5af9ab4177611b00412abe3ee3217030740307
parentce4a600e477a4da600c8056897e71e2f4a8c5ac0
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>
include/linux/netdevice.h