summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog/intel_scu_watchdog.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2011-05-26 11:12:53 +0200
committerWim Van Sebroeck <wim@iguana.be>2011-06-28 09:42:50 +0200
commite376fd664b1547e29e264e3cfb97553a1be9054b (patch)
treea1315cfb93b516158649db48a46a8a53f6997fcc /drivers/watchdog/intel_scu_watchdog.c
parentwatchdog: mtx1-wdt: fix section mismatch (diff)
downloadlinux-e376fd664b1547e29e264e3cfb97553a1be9054b.tar.xz
linux-e376fd664b1547e29e264e3cfb97553a1be9054b.zip
watchdog: Intel SCU Watchdog: Fix build and remove duplicate code
Trying to build the Intel SCU Watchdog fails for me with gcc 4.6.0 - $ gcc --version | head -n 1 gcc (GCC) 4.6.0 20110513 (prerelease) like this : CC drivers/watchdog/intel_scu_watchdog.o In file included from drivers/watchdog/intel_scu_watchdog.c:49:0: /home/jj/src/linux-2.6/arch/x86/include/asm/apb_timer.h: In function ‘apbt_time_init’: /home/jj/src/linux-2.6/arch/x86/include/asm/apb_timer.h:65:42: warning: ‘return’ with a value, in function returning void [enabled by default] drivers/watchdog/intel_scu_watchdog.c: In function ‘intel_scu_watchdog_init’: drivers/watchdog/intel_scu_watchdog.c:468:2: error: implicit declaration of function ‘sfi_get_mtmr’ [-Werror=implicit-function-declaration] drivers/watchdog/intel_scu_watchdog.c:468:32: warning: assignment makes pointer from integer without a cast [enabled by default] cc1: some warnings being treated as errors make[1]: *** [drivers/watchdog/intel_scu_watchdog.o] Error 1 make: *** [drivers/watchdog/intel_scu_watchdog.o] Error 2 Additionally, linux/types.h is needlessly being included twice in drivers/watchdog/intel_scu_watchdog.c Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Diffstat (limited to 'drivers/watchdog/intel_scu_watchdog.c')
-rw-r--r--drivers/watchdog/intel_scu_watchdog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/watchdog/intel_scu_watchdog.c b/drivers/watchdog/intel_scu_watchdog.c
index 919bdd16136f..ba4386066a42 100644
--- a/drivers/watchdog/intel_scu_watchdog.c
+++ b/drivers/watchdog/intel_scu_watchdog.c
@@ -42,7 +42,6 @@
#include <linux/sched.h>
#include <linux/signal.h>
#include <linux/sfi.h>
-#include <linux/types.h>
#include <asm/irq.h>
#include <asm/atomic.h>
#include <asm/intel_scu_ipc.h>