watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL
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
Signed-off-by Vasily Averin <[email protected]>
--- kernel/watchdog.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
kernel/watchdog.c +2 -3
@@ -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