linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] kernel/rcupdate.c: make two structs static
@ 2006-01-22 13:54 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2006-01-22 13:54 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Dipankar Sarma, Manfred Spraul, linux-kernel

This patch makes two needlessly global structs static.


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

---

This patch was already sent on:
- 12 Jan 2006

 include/linux/rcupdate.h |    2 --
 kernel/rcupdate.c        |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.15-mm3-full/include/linux/rcupdate.h.old	2006-01-12 02:23:35.000000000 +0100
+++ linux-2.6.15-mm3-full/include/linux/rcupdate.h	2006-01-12 01:06:47.000000000 +0100
@@ -109,8 +109,6 @@
 
 DECLARE_PER_CPU(struct rcu_data, rcu_data);
 DECLARE_PER_CPU(struct rcu_data, rcu_bh_data);
-extern struct rcu_ctrlblk rcu_ctrlblk;
-extern struct rcu_ctrlblk rcu_bh_ctrlblk;
 
 /*
  * Increment the quiescent state counter.
--- linux-2.6.15-mm3-full/kernel/rcupdate.c.old	2006-01-12 01:06:54.000000000 +0100
+++ linux-2.6.15-mm3-full/kernel/rcupdate.c	2006-01-12 01:07:07.000000000 +0100
@@ -49,13 +49,13 @@
 #include <linux/cpu.h>
 
 /* Definition for rcupdate control block. */
-struct rcu_ctrlblk rcu_ctrlblk = {
+static struct rcu_ctrlblk rcu_ctrlblk = {
 	.cur = -300,
 	.completed = -300,
 	.lock = SPIN_LOCK_UNLOCKED,
 	.cpumask = CPU_MASK_NONE,
 };
-struct rcu_ctrlblk rcu_bh_ctrlblk = {
+static struct rcu_ctrlblk rcu_bh_ctrlblk = {
 	.cur = -300,
 	.completed = -300,
 	.lock = SPIN_LOCK_UNLOCKED,


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] kernel/rcupdate.c: make two structs static
@ 2006-01-12 10:48 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2006-01-12 10:48 UTC (permalink / raw)
  To: Dipankar Sarma, Manfred Spraul; +Cc: linux-kernel

This patch makes two needlessly global structs static.


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

---

 include/linux/rcupdate.h |    2 --
 kernel/rcupdate.c        |    4 ++--
 2 files changed, 2 insertions(+), 4 deletions(-)

--- linux-2.6.15-mm3-full/include/linux/rcupdate.h.old	2006-01-12 02:23:35.000000000 +0100
+++ linux-2.6.15-mm3-full/include/linux/rcupdate.h	2006-01-12 01:06:47.000000000 +0100
@@ -109,8 +109,6 @@
 
 DECLARE_PER_CPU(struct rcu_data, rcu_data);
 DECLARE_PER_CPU(struct rcu_data, rcu_bh_data);
-extern struct rcu_ctrlblk rcu_ctrlblk;
-extern struct rcu_ctrlblk rcu_bh_ctrlblk;
 
 /*
  * Increment the quiescent state counter.
--- linux-2.6.15-mm3-full/kernel/rcupdate.c.old	2006-01-12 01:06:54.000000000 +0100
+++ linux-2.6.15-mm3-full/kernel/rcupdate.c	2006-01-12 01:07:07.000000000 +0100
@@ -49,13 +49,13 @@
 #include <linux/cpu.h>
 
 /* Definition for rcupdate control block. */
-struct rcu_ctrlblk rcu_ctrlblk = {
+static struct rcu_ctrlblk rcu_ctrlblk = {
 	.cur = -300,
 	.completed = -300,
 	.lock = SPIN_LOCK_UNLOCKED,
 	.cpumask = CPU_MASK_NONE,
 };
-struct rcu_ctrlblk rcu_bh_ctrlblk = {
+static struct rcu_ctrlblk rcu_bh_ctrlblk = {
 	.cur = -300,
 	.completed = -300,
 	.lock = SPIN_LOCK_UNLOCKED,


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-01-22 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-22 13:54 [2.6 patch] kernel/rcupdate.c: make two structs static Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2006-01-12 10:48 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).