* [PATCH] watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL
@ 2011-09-30 11:12 Vasily Averin
0 siblings, 0 replies; only message in thread
From: Vasily Averin @ 2011-09-30 11:12 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton, Vasily Averin
From: Vasily Averin <vvs@sw.ru>
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
Signed-off-by: Vasily Averin <vvs@sw.ru>
---
kernel/watchdog.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/kernel/watchdog.c b/kernel/watchdog.c
index 36491cd..13644ee 100644
--- a/kernel/watchdog.c
+++ b/kernel/watchdog.c
@@ -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
*/
--
1.7.4.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-30 11:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30 11:12 [PATCH] watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL Vasily Averin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®