kernel-hacking-2024-linux-s.../include/net/netns
Tejun Heo 7d720c3e4f percpu: add __percpu sparse annotations to net
Add __percpu sparse annotations to net.

These annotations are to make sparse consider percpu variables to be
in a different address space and warn if accessed without going
through percpu accessors.  This patch doesn't affect normal builds.

The macro and type tricks around snmp stats make things a bit
interesting.  DEFINE/DECLARE_SNMP_STAT() macros mark the target field
as __percpu and SNMP_UPD_PO_STATS() macro is updated accordingly.  All
snmp_mib_*() users which used to cast the argument to (void **) are
updated to cast it to (void __percpu **).

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Patrick McHardy <kaber@trash.net>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Vlad Yasevich <vladislav.yasevich@hp.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-02-16 23:05:38 -08:00
..
conntrack.h percpu: add __percpu sparse annotations to net 2010-02-16 23:05:38 -08:00
core.h percpu: add __percpu sparse annotations to net 2010-02-16 23:05:38 -08:00
dccp.h
generic.h net: remove [un]register_pernet_gen_... and update the docs. 2009-12-01 16:16:00 -08:00
hash.h
ipv4.h Merge branch 'master' of /repos/git/net-next-2.6 2010-02-10 14:17:10 +01:00
ipv6.h netfilter: netns: #ifdef ->iptable_security, ->ip6table_security 2010-01-18 08:08:37 +01:00
mib.h
packet.h
unix.h
x_tables.h
xfrm.h netns xfrm: deal with dst entries in netns 2010-01-24 22:47:53 -08:00