Re: [PATCH] watchdog: dw_wdt: dont build for avr32

From: Guenter Roeck
Date: Tue Apr 12 2016 - 09:06:21 EST


On 04/11/2016 10:51 PM, Sudip Mukherjee wrote:
The build of avr32 allmodconfig fails with the error:
ERROR: "__avr32_udiv64" [drivers/watchdog/kempld_wdt.ko] undefined!

This means there is a direct 64 bit divide operation in the driver,
which we should identify and fix.

Guenter

Exclude this driver from the build of avr32.

Signed-off-by: Sudip Mukherjee <sudip.mukherjee@xxxxxxxxxxxxxxx>
---

avr32 build log is at:
https://travis-ci.org/sudipm-mukherjee/parport/jobs/122158665

drivers/watchdog/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
index fb94765..61041ba 100644
--- a/drivers/watchdog/Kconfig
+++ b/drivers/watchdog/Kconfig
@@ -981,7 +981,7 @@ config HP_WATCHDOG

config KEMPLD_WDT
tristate "Kontron COM Watchdog Timer"
- depends on MFD_KEMPLD
+ depends on MFD_KEMPLD && !AVR32
select WATCHDOG_CORE
help
Support for the PLD watchdog on some Kontron ETX and COMexpress