diff options
author | Eric Dumazet <edumazet@google.com> | 2013-03-30 10:08:44 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-30 17:31:25 -0400 |
commit | e052f7e64daae6aa7a7ccd003b3c285d99755afb (patch) | |
tree | 4c8b157b5038d77c47ebf58c1dabf8d2915642cd /arch/cris | |
parent | 4c3d5e7b41dda1b1372bfc2545ef092a1bc5ad33 (diff) | |
download | blackbird-op-linux-e052f7e64daae6aa7a7ccd003b3c285d99755afb.tar.gz blackbird-op-linux-e052f7e64daae6aa7a7ccd003b3c285d99755afb.zip |
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 <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/cris')
0 files changed, 0 insertions, 0 deletions