]> git.karo-electronics.de Git - karo-tx-linux.git/commit
watchdog: move watchdog_*_all_cpus under CONFIG_SYSCTL
authorVasily Averin <vvs@sw.ru>
Wed, 5 Oct 2011 00:43:25 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 7 Oct 2011 06:06:50 +0000 (17:06 +1100)
commit2b293cd311e6f99eddff3095d5445cf0348f96a8
tree3c4364036ced468241fad0c0d0fd451ce04eac9d
parent9c5354a68fbdfe8f4a83222c3255b79a334c2e7e
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 <vvs@sw.ru>
Signed-off-by: Andrew Morton <akpm@google.com>
kernel/watchdog.c