Skip to contentSkip to conversation

nvmem: rmem: select CONFIG_CRC32

PATCH Applied Arnd Bergmann 2 participants 2 messages Apr 28, 2025 – Apr 29, 2025 NVMEM framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nvmem: rmem: select CONFIG_CRC32

From: Arnd Bergmann <[email protected]>

The newly added crc checking leads to a link failure if CRC32 itself is disabled:

x86_64-linux-ld: vmlinux.o: in function `rmem_eyeq5_checksum':
rmem.c:(.text+0x52341b): undefined reference to `crc32_le_arch'

Fixes 7e606c311f70 ("nvmem: rmem: add CRC validation for Mobileye EyeQ5 NVMEM")
---
 drivers/nvmem/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/nvmem/Kconfig +1 -0
index 8671b7c974b9..eceb3cdb421f 100644
@@ -260,6 +260,7 @@ config NVMEM_RCAR_EFUSE
 config NVMEM_RMEM
 	tristate "Reserved Memory Based Driver Support"
 	depends on HAS_IOMEM
+	select CRC32
 	help
 	  This driver maps reserved memory into an nvmem device. It might be
 	  useful to expose information left by firmware in memory.
Signature · 1 line
2.39.5
maintainer Applied
#1 lore raw
Quoted 8 lines · Arnd Bergmann

The newly added crc checking leads to a link failure if CRC32 itself is disabled:

x86_64-linux-ld: vmlinux.o: in function `rmem_eyeq5_checksum':
rmem.c:(.text+0x52341b): undefined reference to `crc32_le_arch'

[...]

Applied, thanks!

[1/1] nvmem: rmem: select CONFIG_CRC32

      commit: f1a714e1cd0d29f7b0ffa5ec404784aac15e9af4

Best regards,

Signature · 1 line
Srinivas Kandagatla <[email protected]>