From: Arnd Bergmann <arnd@arndb.de>
Date: Wed, 20 Jul 2022 15:58:18 +0000 (+0200)
Subject: soc: a64fx-diag: disable modular build
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f740949d41a7ff85aa23ce62c29d095066e5e6d4;p=linux.git

soc: a64fx-diag: disable modular build

The NMI infrastructure cannot currently be used in loadable modules:

ERROR: modpost: "free_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined!
ERROR: modpost: "request_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined!
ERROR: modpost: "enable_nmi" [drivers/soc/fujitsu/a64fx-diag.ko] undefined!

Disable this for now to make allmodconfig build again. We may revisit
this and export those symbols instead in the future.

Reported-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---

diff --git a/drivers/soc/fujitsu/Kconfig b/drivers/soc/fujitsu/Kconfig
index 56275b44b2932..987731e80612f 100644
--- a/drivers/soc/fujitsu/Kconfig
+++ b/drivers/soc/fujitsu/Kconfig
@@ -2,7 +2,7 @@
 menu "fujitsu SoC drivers"
 
 config A64FX_DIAG
-	tristate "A64FX diag driver"
+	bool "A64FX diag driver"
 	depends on ARM64
 	depends on ACPI
 	help