Skip to contentSkip to conversation

kernel/rcupdate.c: make two struct static.

PATCH New Adrian Bunk 1 participant 1 message Dec 12, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/rcupdate.c: make two struct static.

The patch below makes two needlessly global structs static.

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 };