[PATCH v6 4/4] nvmem: enable COMPILE_TEST for more drivers
From: Link Mauve
Date: Sun Sep 20 2026 - 07:14:20 EST
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@xxxxxxxxxxxx>
---
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