From: Adrian Bunk <bunk@stusta.de>
To: jejb@steeleye.com
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] i386 mca.c: small cleanups
Date: Wed, 1 Dec 2004 22:48:02 +0100 [thread overview]
Message-ID: <20041201214801.GV2650@stusta.de> (raw)
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 },
reply other threads:[~2004-12-01 21:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20041201214801.GV2650@stusta.de \
--to=bunk@stusta.de \
--cc=jejb@steeleye.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.