From: Sam Protsenko Date: Fri, 20 Oct 2023 21:46:33 +0000 (-0500) Subject: watchdog: s5p_wdt: Include missing CPU header X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=11bd2787deff113634cb9f330d9287e6d3d76e9e;p=u-boot.git watchdog: s5p_wdt: Include missing CPU header s5p watchdog driver calls samsung_get_base_watchdog() function, but its prototype is not included. That might lead to build warnings like this: drivers/watchdog/s5p_wdt.c: In function 'wdt_stop': drivers/watchdog/s5p_wdt.c:16:26: warning: implicit declaration of function 'samsung_get_base_watchdog' [-Wimplicit-function-declaration] 16 | (struct s5p_watchdog *)samsung_get_base_watchdog(); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Include asm/arch/cpu.h to fix that issue. Signed-off-by: Sam Protsenko Signed-off-by: Minkyu Kang --- diff --git a/drivers/watchdog/s5p_wdt.c b/drivers/watchdog/s5p_wdt.c index 5ad7d2609f..80524a0010 100644 --- a/drivers/watchdog/s5p_wdt.c +++ b/drivers/watchdog/s5p_wdt.c @@ -6,6 +6,7 @@ #include #include +#include #include #define PRESCALER_VAL 255