]> 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, 13 Oct 2011 06:49:36 +0000 (17:49 +1100)
commit4b3a2f08d13049eb01bcc60f0f1f34eb481ae36c
tree9d763b2a03c5684f157a524e7b4abf7eb0b6e8ea
parent4a4173717bdec98241007a326a6d4024b273a858
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