From: Eric Dumazet Date: Sat, 30 Mar 2013 10:08:44 +0000 (+0000) Subject: macvlan: use the right RCU api X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~256 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e052f7e64daae6aa7a7ccd003b3c285d99755afb;p=pandora-kernel.git macvlan: use the right RCU api Make sure we use proper API to fetch dev->rx_handler_data, instead of ugly casts. Rename macvlan_port_get() to macvlan_port_get_rtnl() to document fact that we hold RTNL when needed, with lockdep support. This removes sparse warnings as well (CONFIG_SPARSE_RCU_POINTER=y) CHECK drivers/net/macvlan.c drivers/net/macvlan.c:706:37: warning: cast removes address space of expression drivers/net/macvlan.c:775:16: warning: cast removes address space of expression drivers/net/macvlan.c:924:16: warning: cast removes address space of expression Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed