rcu: Make rcu_*_data variables static
authorNicolas Iooss <nicolas.iooss_linux@m4x.org>
Tue, 5 May 2015 13:57:06 +0000 (21:57 +0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:58:03 +0000 (12:58 -0700)
commitc92fb05795f57463cb763a82f9053d294f77ea87
treebca210a3cb3ee807c1d42137d94f3f2084f39f9e
parent30ff1533b8f75255bdf02bc3361f1c558138f471
rcu: Make rcu_*_data variables static

rcu_bh_data, rcu_sched_data and rcu_preempt_data are never used outside
kernel/rcu/tree.c and thus can be made static.

Doing so fixes a section mismatch warning reported by clang when
building LLVMLinux with -Wsection, because these variables were declared
in .data..percpu and defined in .data..percpu..shared_aligned since
commit 11bbb235c26f ("rcu: Use DEFINE_PER_CPU_SHARED_ALIGNED for
rcu_data").

Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree.h