Skip to content

Commit ba5eb0e

Browse files
JackieLiu1gregkh
authored andcommitted
ar7: fix kernel builds for compiler test
[ Upstream commit 28b7ee3 ] TI AR7 Watchdog Timer is only build for 32bit. Avoid error like: In file included from drivers/watchdog/ar7_wdt.c:29: ./arch/mips/include/asm/mach-ar7/ar7.h: In function ‘ar7_is_titan’: ./arch/mips/include/asm/mach-ar7/ar7.h:111:24: error: implicit declaration of function ‘KSEG1ADDR’; did you mean ‘CKSEG1ADDR’? [-Werror=implicit-function-declaration] 111 | return (readl((void *)KSEG1ADDR(AR7_REGS_GPIO + 0x24)) & 0xffff) == | ^~~~~~~~~ | CKSEG1ADDR Fixes: da2a68b ("watchdog: Enable COMPILE_TEST where possible") Signed-off-by: Jackie Liu <liuyun01@kylinos.cn> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Link: https://lore.kernel.org/r/20210907024904.4127611-1-liu.yun@linux.dev Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent ef9f7ab commit ba5eb0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/watchdog/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ config SIBYTE_WDOG
17231723

17241724
config AR7_WDT
17251725
tristate "TI AR7 Watchdog Timer"
1726-
depends on AR7 || (MIPS && COMPILE_TEST)
1726+
depends on AR7 || (MIPS && 32BIT && COMPILE_TEST)
17271727
help
17281728
Hardware driver for the TI AR7 Watchdog Timer.
17291729

0 commit comments

Comments
 (0)