linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2.6 patch] i386 mca.c: small cleanups
@ 2004-12-01 21:48 Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2004-12-01 21:48 UTC (permalink / raw)
  To: jejb; +Cc: linux-kernel

The patch below contains the following cleanups:
- make spinlock mca_lock static
- make struct mca_standard_resources static


diffstat output:
 arch/i386/kernel/mca.c |    4 ++--
 include/asm-i386/mca.h |    3 ---
 2 files changed, 2 insertions(+), 5 deletions(-)


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

--- linux-2.6.10-rc2-mm4-full/include/asm-i386/mca.h.old	2004-12-01 08:02:57.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/include/asm-i386/mca.h	2004-12-01 08:03:10.000000000 +0100
@@ -40,7 +40,4 @@
  */
 #define MCA_NUMADAPTERS (MCA_MAX_SLOT_NR+3)
 
-/* lock to protect access to the MCA registers */
-extern spinlock_t mca_lock;
-
 #endif
--- linux-2.6.10-rc2-mm4-full/arch/i386/kernel/mca.c.old	2004-12-01 08:03:18.000000000 +0100
+++ linux-2.6.10-rc2-mm4-full/arch/i386/kernel/mca.c	2004-12-01 08:03:44.000000000 +0100
@@ -62,7 +62,7 @@
  *
  * Yes - Alan
  */
-spinlock_t mca_lock = SPIN_LOCK_UNLOCKED;
+static spinlock_t mca_lock = SPIN_LOCK_UNLOCKED;
 
 /* Build the status info for the adapter */
 
@@ -119,7 +119,7 @@
 
 /*--------------------------------------------------------------------*/
 
-struct resource mca_standard_resources[] = {
+static struct resource mca_standard_resources[] = {
 	{ "system control port B (MCA)", 0x60, 0x60 },
 	{ "arbitration (MCA)", 0x90, 0x90 },
 	{ "card Select Feedback (MCA)", 0x91, 0x91 },


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-01 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-01 21:48 [2.6 patch] i386 mca.c: small cleanups 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).