[PATCH 1/2 2.6.10] rcu: make two internal structs static

From: Manfred Spraul
Date: Wed Dec 29 2004 - 10:24:59 EST


The patch below makes two needlessly global structs static.

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

Tested with 2.6.10, no rediff required.
Signed-off-by: Manfred Spraul <manfred@xxxxxxxxxxxxxxxx>

--- linux-2.6.10-rc2-mm4-full/kernel/rcupdate.c.old 2004-12-12 03:13:54.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/kernel/rcupdate.c 2004-12-12 03:14:15.000000000 +0100
@@ -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 };

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/