]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: s5p_wdt: Include missing CPU header
authorSam Protsenko <semen.protsenko@linaro.org>
Fri, 20 Oct 2023 21:46:33 +0000 (16:46 -0500)
committerMinkyu Kang <mk7.kang@samsung.com>
Mon, 13 Nov 2023 07:18:01 +0000 (16:18 +0900)
commit11bd2787deff113634cb9f330d9287e6d3d76e9e
treef9cabe4d8299bf2f45fed864e218a01444c36aaa
parentc9ab9f30c8e41426d9d028821895ef3853f683fc
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 <semen.protsenko@linaro.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/watchdog/s5p_wdt.c