kernel/rcupdate.c: make two struct static.
PATCH 1/1 kernel/rcupdate.c: make two struct static.
The patch below makes two needlessly global structs static.
Signed-off-by Adrian Bunk <[email protected]>
kernel/rcupdate.c renamed from kernel/rcupdate.c.old +2 -2
@@ -60,9 +60,9 @@/* for current batch to proceed. */ }; -struct rcu_state rcu_state ____cacheline_maxaligned_in_smp = +static struct rcu_state rcu_state ____cacheline_maxaligned_in_smp = {.lock =SPIN_LOCK_UNLOCKED , .cpumask =CPU_MASK_NONE }; -struct rcu_state rcu_bh_state ____cacheline_maxaligned_in_smp = +static struct rcu_state rcu_bh_state ____cacheline_maxaligned_in_smp = {.lock =SPIN_LOCK_UNLOCKED , .cpumask =CPU_MASK_NONE }; DEFINE_PER_CPU(struct rcu_data, rcu_data) = { 0L };