Skip to content

Commit e376fd6

Browse files
jjuhlWim Van Sebroeck
authored andcommitted
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 <[email protected]> Signed-off-by: Wim Van Sebroeck <[email protected]>
1 parent db98f89 commit e376fd6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

arch/x86/include/asm/apb_timer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ extern int sfi_mtimer_num;
6262
#else /* CONFIG_APB_TIMER */
6363

6464
static inline unsigned long apbt_quick_calibrate(void) {return 0; }
65-
static inline void apbt_time_init(void) {return 0; }
65+
static inline void apbt_time_init(void) { }
6666

6767
#endif
6868
#endif /* ASM_X86_APBT_H */

drivers/watchdog/Kconfig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,7 @@ config I6300ESB_WDT
535535

536536
config INTEL_SCU_WATCHDOG
537537
bool "Intel SCU Watchdog for Mobile Platforms"
538-
depends on WATCHDOG
539-
depends on INTEL_SCU_IPC
538+
depends on X86_MRST
540539
---help---
541540
Hardware driver for the watchdog time built into the Intel SCU
542541
for Intel Mobile Platforms.

drivers/watchdog/intel_scu_watchdog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
#include <linux/sched.h>
4343
#include <linux/signal.h>
4444
#include <linux/sfi.h>
45-
#include <linux/types.h>
4645
#include <asm/irq.h>
4746
#include <asm/atomic.h>
4847
#include <asm/intel_scu_ipc.h>

0 commit comments

Comments
 (0)