From: Vasily Averin Date: Wed, 5 Oct 2011 00:43:25 +0000 (+1100) Subject: watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL X-Git-Tag: next-20111012~1^2~114 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=60812a206a628617a30a8c892e8a0dd535cc7df7;p=karo-tx-linux.git watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL Fix compilation warnings for CONFIG_SYSCTL=n: 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 static and are used only in sysctl handler, so move them inside #ifdef CONFIG_SYSCTL too Signed-off-by: Vasily Averin Signed-off-by: Andrew Morton --- diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 617c107343d0..cd5081582430 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -482,6 +482,8 @@ static void watchdog_disable(int cpu) } } +/* sysctl functions */ +#ifdef CONFIG_SYSCTL static void watchdog_enable_all_cpus(void) { int cpu; @@ -511,8 +513,6 @@ static void watchdog_disable_all_cpus(void) } -/* sysctl functions */ -#ifdef CONFIG_SYSCTL /* * proc handler for /proc/sys/kernel/nmi_watchdog,watchdog_thresh */