Skip to contentSkip to conversation

drivers/char/watchdog/: make some code static

PATCH New Adrian Bunk 1 participant 1 message Jan 31, 2005 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/char/watchdog/: make some code static

This patch makes some needlessly global code static.

---

 drivers/char/watchdog/machzwd.c   |    2 +-
 drivers/char/watchdog/sc1200wdt.c |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/char/watchdog/machzwd.c renamed from drivers/char/watchdog/machzwd.c.old +1 -1
@@ -488,7 +488,7 @@
 }
 
 
-void __exit zf_exit(void)
+static void __exit zf_exit(void)
 {
 	zf_timer_off();
 
drivers/char/watchdog/sc1200wdt.c renamed from drivers/char/watchdog/sc1200wdt.c.old +3 -3
@@ -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 = ""},