[PATCH v2 2/3] nvmem: enable COMPILE_TEST for more drivers
From: Link Mauve
Date: Mon Oct 12 2026 - 17:11:51 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 e614d56ff7a8..ed5b8e21ded0 100644
--- a/drivers/nvmem/Kconfig
+++ b/drivers/nvmem/Kconfig
@@ -368,7 +368,7 @@ config NVMEM_NINTENDO_OTP
config NVMEM_S32G_OCOTP
tristate "S32G SoC OCOTP support"
- depends on ARCH_S32
+ depends on ARCH_S32 || COMPILE_TEST
depends on HAS_IOMEM
help
This is a driver for the 'OCOTP' peripheral available on S32G
@@ -535,7 +535,7 @@ config NVMEM_SUNPLUS_OCOTP
config NVMEM_SUNXI_SID
tristate "Allwinner SoCs SID support"
- depends on ARCH_SUNXI
+ depends on ARCH_SUNXI || COMPILE_TEST
depends on HAS_IOMEM
help
This is a driver for the 'security ID' available on various Allwinner
@@ -582,7 +582,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.56.0