projects/linux·commit 6cb44bef

powerpc: Include asm/nmi.c in mobility.c for watchdog_hardlockup_set_timeout_pct()

6cb44bef · Douglas Anderson <[email protected]> · 2023-06-29 12:45:06 -07:00

The powerpc/platforms/pseries/mobility.c calls
watchdog_hardlockup_set_timeout_pct(), which is declared in
<asm/nmi.h>. We used to automatically get <asm/nmi.h> included, but
that changed as of commit 7ca8fe94aa92 ("watchdog/hardlockup: define
HARDLOCKUP_DETECTOR_ARCH"). Let's add the explicit include.

Reported-by: Randy Dunlap <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]
Fixes: 7ca8fe94aa92 ("watchdog/hardlockup: define HARDLOCKUP_DETECTOR_ARCH")
Signed-off-by: Douglas Anderson <[email protected]>
Tested-by: Randy Dunlap <[email protected]> # build-tested
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Randy Dunlap <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://msgid.link/20230629124500.1.I55e2f4e7903d686c4484cb23c033c6a9e1a9d4c4@changeid
Commit
6cb44bef35ac11724ef22c5ae4f1bc607e2ef3d8
Parents
39f49684

Changes

1 files changed · +1 −0

FileStatusAddDelContent
arch/powerpc/platforms/pseries/mobility.cmodified+1−0View file

arch/powerpc/platforms/pseries/mobility.c

View file
diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c
index cd632ba..0161226 100644
--- a/arch/powerpc/platforms/pseries/mobility.c
+++ b/arch/powerpc/platforms/pseries/mobility.c
@@ -24,6 +24,7 @@
#include <linux/stringify.h>
#include <asm/machdep.h>
+#include <asm/nmi.h>
#include <asm/rtas.h>
#include "pseries.h"
#include "vas.h" /* vas_migration_handler() */