]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog/hpwdt: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING
authorJerry Hoemann <jerry.hoemann@hpe.com>
Sat, 20 Aug 2022 20:28:20 +0000 (14:28 -0600)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 2 Oct 2022 10:55:32 +0000 (12:55 +0200)
commitf033b69fe713959f0e28844e4bb607b25e023c30
tree867f9cd1b7369f08a2cded755dd962f39a760f74
parentc2f7349a3e528d046e7917da130c6e647ff1d765
watchdog/hpwdt: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING

Fixes: 0b5ca06e5f0a ("x86, nmi, drivers: Fix nmi splitup build bug")
Arm64 does not support NMI and has no <asm/nmi.h>.

Include <asm/nmi.h> only if CONFIG_HPWDT_NMI_DECODING is defined to
avoid build failure on non-existent header file on Arm64.

Signed-off-by: Jerry Hoemann <jerry.hoemann@hpe.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220820202821.1263837-2-jerry.hoemann@hpe.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/hpwdt.c