[2.6 patch] i386 mca.c: small cleanups

From: Adrian Bunk
Date: Wed Dec 01 2004 - 16:49:59 EST


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@xxxxxxxxx>

--- 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 },

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