From 5021209f5a94e862c6b2915e4e6993b4931364fe Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 11 Mar 2013 18:32:50 +0100 Subject: [PATCH] watchdog.h: Fix compile time error on disabling watchdog handling There's a compile time error that we didn't catch since the board defaults as used by the build bot won't expose it. Just make watchdog_off() a no-op statement so there aren't any stray semicolons in the preprocessor output. Change-Id: Ib5595e7e8aa91ca54bc8ca30a39b72875c961464 Reported-by: 'lautriv' on irc.freenode.net/#coreboot Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/2627 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel --- src/include/watchdog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/watchdog.h b/src/include/watchdog.h index d6267375f5..b94cd4dcd0 100644 --- a/src/include/watchdog.h +++ b/src/include/watchdog.h @@ -4,7 +4,7 @@ #if CONFIG_USE_WATCHDOG_ON_BOOT void watchdog_off(void); #else -#define watchdog_off() +#define watchdog_off() while(0) {} #endif #endif /* WATCHDOG_H */