netdev: set __percpu attribute on netdev_alloc_pcpu_stats
authorstephen hemminger <stephen@networkplumber.org>
Mon, 10 Mar 2014 16:41:46 +0000 (09:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Mar 2014 20:37:14 +0000 (16:37 -0400)
commit693350c2ffe42a21185070b1e8ab77959b45d61e
tree50daed39f25b2fd0f0c8071ff5dbd3e85fcd1ea8
parent090f1166c6790e18c30f40690098829709e8dc68
netdev: set __percpu attribute on netdev_alloc_pcpu_stats

This patch fixes sparse warnings in vlan driver.
It propagates the sparse __percpu attribute from alloc_percpu
into netdev_alloc_pcpu_stats. I expect it may trigger additional
sparse warnings from other drivers that are missing the __percpu
attribute.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Cong Wang <cwang@twopensource.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h