[PATCH v6 4/4] nvmem: enable COMPILE_TEST for more drivers

Link Mauve linkmauve at linkmauve.fr
Sun Sep 20 04:09:57 PDT 2026


Three drivers had a depends on ARCH_*, but didn’t also compile when
COMPILE_TEST is enabled, making it harder than it should be to test
them.

Some other drivers also don’t have a COMPILE_TEST, but those have
additional dependencies and I didn’t want to investigate too much.

Signed-off-by: Link Mauve <linkmauve at linkmauve.fr>
---
 drivers/nvmem/Kconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/nvmem/Kconfig b/drivers/nvmem/Kconfig
index c36c2a4c2a0b..d38097d6648b 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -354,7 +354,7 @@ config NVMEM_NINTENDO_OTP
 
 config NVMEM_S32G_OCOTP
 	tristate "S32G SoC OCOTP support"
-	depends on ARCH_S32
+	depends on ARCH_S32 || COMPILE_TEST
 	help
 	  This is a driver for the 'OCOTP' peripheral available on S32G
 	  platforms.
@@ -518,7 +518,7 @@ config NVMEM_SUNPLUS_OCOTP
 
 config NVMEM_SUNXI_SID
 	tristate "Allwinner SoCs SID support"
-	depends on ARCH_SUNXI
+	depends on ARCH_SUNXI || COMPILE_TEST
 	help
 	  This is a driver for the 'security ID' available on various Allwinner
 	  devices.
@@ -563,7 +563,7 @@ config NVMEM_VF610_OCOTP
 
 config NVMEM_ZYNQMP
 	tristate "Xilinx ZYNQMP SoC nvmem firmware support"
-	depends on ARCH_ZYNQMP
+	depends on ARCH_ZYNQMP || COMPILE_TEST
 	help
 	  This is a driver to access hardware related data like
 	  soc revision, IDCODE... etc by using the firmware
-- 
2.55.0




More information about the linux-arm-kernel mailing list