Skip to contentSkip to conversation

watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL

PATCH New Vasily Averin 1 participant 1 message Sep 30, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL

From: Vasily Averin <[email protected]>

fixed compilation warnings in case of disabled CONFIG_SYSCTL kernel/watchdog.c:483:13: warning: ‘watchdog_enable_all_cpus’ defined but not used kernel/watchdog.c:500:13: warning: ‘watchdog_disable_all_cpus’ defined but not used

these functions are are static and are used only in sysctl handler, so move them inside #ifdef CONFIG_SYSCTL too

---
 kernel/watchdog.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
kernel/watchdog.c +2 -3
index 36491cd..13644ee 100644
@@ -480,6 +480,8 @@ static void watchdog_disable(int cpu)
 	}
 }
 
+/* sysctl functions */
+#ifdef CONFIG_SYSCTL
 static void watchdog_enable_all_cpus(void)
 {
 	int cpu;
@@ -508,9 +510,6 @@ static void watchdog_disable_all_cpus(void)
 	watchdog_enabled = 0;
 }
 
-
-/* sysctl functions */
-#ifdef CONFIG_SYSCTL
 /*
  * proc handler for /proc/sys/kernel/nmi_watchdog,watchdog_thresh
  */
Signature · 1 line
1.7.4.1