]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
nvmem: rmem: select CONFIG_CRC32
authorArnd Bergmann <arnd@arndb.de>
Fri, 9 May 2025 12:24:06 +0000 (13:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 12:28:09 +0000 (14:28 +0200)
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")
Cc: stable <stable@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://lore.kernel.org/r/20250509122407.11763-2-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/Kconfig

index 8671b7c974b933e147154bb40b5d41b5730518d2..eceb3cdb421ffbb78d8553107c24874ce8f7b523 100644 (file)
@@ -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.