percpu: remove some sparse warnings
authorTejun Heo <tj@kernel.org>
Thu, 29 Oct 2009 13:34:12 +0000 (22:34 +0900)
committerTejun Heo <tj@kernel.org>
Thu, 29 Oct 2009 13:34:12 +0000 (22:34 +0900)
commit0f5e4816dbf38ce9488e611ca2296925c1e90d5e
tree9c13079d21cb0c316db7e254222bca357ad7b41b
parent64ef291f46d795917f32a0f5975e2b76f6fe206a
percpu: remove some sparse warnings

Make the following changes to remove some sparse warnings.

* Make DEFINE_PER_CPU_SECTION() declare __pcpu_unique_* before
  defining it.

* Annotate pcpu_extend_area_map() that it is entered with pcpu_lock
  held, releases it and then reacquires it.

* Make percpu related macros use unique nested variable names.

* While at it, add pcpu prefix to __size_call[_return]() macros as
  to-be-implemented sparse annotations will add percpu specific stuff
  to these macros.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Christoph Lameter <cl@linux-foundation.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/include/asm/percpu.h
include/linux/percpu-defs.h
include/linux/percpu.h
mm/percpu.c