]> git.baikalelectronics.ru Git - kernel.git/commitdiff
lightnvm: select CONFIG_CRC32
authorArnd Bergmann <arnd@arndb.de>
Sun, 3 Jan 2021 21:43:09 +0000 (22:43 +0100)
committerJens Axboe <axboe@kernel.dk>
Sun, 3 Jan 2021 21:54:44 +0000 (14:54 -0700)
Without CRC32 support, this fails to link:

arm-linux-gnueabi-ld: drivers/lightnvm/pblk-init.o: in function `pblk_init':
pblk-init.c:(.text+0x2654): undefined reference to `crc32_le'
arm-linux-gnueabi-ld: drivers/lightnvm/pblk-init.o: in function `pblk_exit':
pblk-init.c:(.text+0x2a7c): undefined reference to `crc32_le'

Fixes: 666397e18deb ("lightnvm: physical block device (pblk) target")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/Kconfig

index 8f39f9ba5c80e8ecb5e6493aa0fde6c0e4834aa0..4c2ce210c1237d0fb36fd8b519564dcbb5b54070 100644 (file)
@@ -19,6 +19,7 @@ if NVM
 
 config NVM_PBLK
        tristate "Physical Block Device Open-Channel SSD target"
+       select CRC32
        help
          Allows an open-channel SSD to be exposed as a block device to the
          host. The target assumes the device exposes raw flash and must be