lkml.org 
[lkml]   [2004]   [Dec]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 1/2 2.6.10] rcu: make two internal structs static
The patch below makes two needlessly global structs static.

Signed-off-by: Adrian Bunk <bunk@stusta.de>

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

--- 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:09    [W:0.044 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site