From: Adrian Bunk <bunk@stusta.de>
To: fuganti@netbank.com.br, Zwane Mwaikambo <zwane@commfireservices.com>
Cc: linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/char/watchdog/: make some code static
Date: Mon, 31 Jan 2005 13:45:43 +0100 [thread overview]
Message-ID: <20050131124543.GH18316@stusta.de> (raw)
This patch makes some needlessly global code static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/char/watchdog/machzwd.c | 2 +-
drivers/char/watchdog/sc1200wdt.c | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
--- linux-2.6.11-rc2-mm2-full/drivers/char/watchdog/machzwd.c.old 2005-01-31 13:07:19.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/char/watchdog/machzwd.c 2005-01-31 13:07:27.000000000 +0100
@@ -488,7 +488,7 @@
}
-void __exit zf_exit(void)
+static void __exit zf_exit(void)
{
zf_timer_off();
--- linux-2.6.11-rc2-mm2-full/drivers/char/watchdog/sc1200wdt.c.old 2005-01-31 13:07:48.000000000 +0100
+++ linux-2.6.11-rc2-mm2-full/drivers/char/watchdog/sc1200wdt.c 2005-01-31 13:08:26.000000000 +0100
@@ -74,9 +74,9 @@
static int timeout = 1;
static int io = -1;
static int io_len = 2; /* for non plug and play */
-struct semaphore open_sem;
+static struct semaphore open_sem;
static char expect_close;
-spinlock_t sc1200wdt_lock; /* io port access serialisation */
+static spinlock_t sc1200wdt_lock; /* io port access serialisation */
#if defined CONFIG_PNP
static int isapnp = 1;
@@ -335,7 +335,7 @@
#if defined CONFIG_PNP
-struct pnp_device_id scl200wdt_pnp_devices[] = {
+static struct pnp_device_id scl200wdt_pnp_devices[] = {
/* National Semiconductor PC87307/PC97307 watchdog component */
{.id = "NSC0800", .driver_data = 0},
{.id = ""},
next reply other threads:[~2005-01-31 12:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-31 12:45 Adrian Bunk [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-02-24 23:39 [2.6 patch] drivers/char/watchdog/: make some code static Adrian Bunk
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=20050131124543.GH18316@stusta.de \
--to=bunk@stusta.de \
--cc=fuganti@netbank.com.br \
--cc=linux-kernel@vger.kernel.org \
--cc=zwane@commfireservices.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox