]> 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>
Thu, 6 Oct 2011 05:59:54 +0000 (16:59 +1100)
commite14de81218dfc267afd971e3650bb84cf1f55b98
tree822c5956c30b5ff6637aa51ac0d4fa3764840525
parent3b8ec640af9c2fbe01c5e302cd26332ad08e5d19
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