lkml.org 
[lkml]   [2004]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[2.6 patch] i386 mca.c: small cleanups
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 },
-
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:08    [W:0.021 / U:0.520 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site