]> 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>
Tue, 11 Oct 2011 08:44:00 +0000 (19:44 +1100)
commita9548f51b1452cd64788a9d1f3784e9d7c6e022a
tree6d3a32b8d588ac2793da2bbde53d574b686eacfd
parent169152880bc0a841c0ddb93f61d181462d8e8331
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