[2.6 patch] kernel/rcupdate.c: make two struct static.

From: Adrian Bunk
Date: Sun Dec 12 2004 - 15:02:13 EST


The patch below makes two needlessly global structs static.


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

--- 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/