]> Git Repo - linux.git/commit
watchdog/hpwdt: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING
authorJerry Hoemann <[email protected]>
Sat, 20 Aug 2022 20:28:20 +0000 (14:28 -0600)
committerWim Van Sebroeck <[email protected]>
Sun, 2 Oct 2022 10:55:32 +0000 (12:55 +0200)
commited835d8171fc884c7750cdd54128df16d4571e3a
tree867f9cd1b7369f08a2cded755dd962f39a760f74
parent926e099267950f3b4442eb48dffc5cc3a870ad34
watchdog/hpwdt: Include nmi.h only if CONFIG_HPWDT_NMI_DECODING

Fixes: d48b0e173715 ("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 <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Signed-off-by: Wim Van Sebroeck <[email protected]>
drivers/watchdog/hpwdt.c
This page took 0.061354 seconds and 4 git commands to generate.