public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/char/watchdog/: make some code static
@ 2005-01-31 12:45 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-01-31 12:45 UTC (permalink / raw)
  To: fuganti, Zwane Mwaikambo; +Cc: linux-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [2.6 patch] drivers/char/watchdog/: make some code static
@ 2005-02-24 23:39 Adrian Bunk
  0 siblings, 0 replies; 2+ messages in thread
From: Adrian Bunk @ 2005-02-24 23:39 UTC (permalink / raw)
  To: Andrew Morton; +Cc: fuganti, Zwane Mwaikambo, linux-kernel

This patch makes some needlessly global code static.

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

---

This patch was already sent on:
- 31 Jan 2005

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-02-25  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-31 12:45 [2.6 patch] drivers/char/watchdog/: make some code static Adrian Bunk
  -- strict thread matches above, loose matches on Subject: below --
2005-02-24 23:39 Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox