public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [-mm patch] connector.c: make notify_lock static
@ 2005-01-31 12:41 Adrian Bunk
  2005-01-31 13:06 ` Evgeniy Polyakov
  2005-01-31 15:00 ` Dmitry Torokhov
  0 siblings, 2 replies; 4+ messages in thread
From: Adrian Bunk @ 2005-01-31 12:41 UTC (permalink / raw)
  To: Evgeniy Polyakov; +Cc: Greg Kroah-Hartman, linux-kernel

notify_lock isn't a good name for a global lock.
But since it's not used outside of the file, it can be made static.

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

--- linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c.old	2005-01-31 13:09:14.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/connector/connector.c	2005-01-31 13:09:28.000000000 +0100
@@ -41,7 +41,7 @@
 module_param(cn_idx, uint, 0);
 module_param(cn_val, uint, 0);
 
-spinlock_t notify_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t notify_lock = SPIN_LOCK_UNLOCKED;
 static LIST_HEAD(notify_list);
 
 static struct cn_dev cdev;


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

end of thread, other threads:[~2005-01-31 15:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 12:41 [-mm patch] connector.c: make notify_lock static Adrian Bunk
2005-01-31 13:06 ` Evgeniy Polyakov
2005-01-31 15:00 ` Dmitry Torokhov
2005-01-31 16:07   ` Evgeniy Polyakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox