Skip to content

Commit 890a8ea

Browse files
Bo Liu (OpenAnolis)gregkh
authored andcommitted
erofs: fix build error with CONFIG_EROFS_FS_ZIP_ACCEL=y
commit 5e0bf36 upstream. fix build err: ld.lld: error: undefined symbol: crypto_req_done referenced by decompressor_crypto.c fs/erofs/decompressor_crypto.o:(z_erofs_crypto_decompress) in archive vmlinux.a referenced by decompressor_crypto.c fs/erofs/decompressor_crypto.o:(z_erofs_crypto_decompress) in archive vmlinux.a ld.lld: error: undefined symbol: crypto_acomp_decompress referenced by decompressor_crypto.c fs/erofs/decompressor_crypto.o:(z_erofs_crypto_decompress) in archive vmlinux.a ld.lld: error: undefined symbol: crypto_alloc_acomp referenced by decompressor_crypto.c fs/erofs/decompressor_crypto.o:(z_erofs_crypto_enable_engine) in archive vmlinux.a Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202507161032.QholMPtn-lkp@intel.com/ Fixes: b4a29ef ("erofs: support DEFLATE decompression by using Intel QAT") Signed-off-by: Bo Liu (OpenAnolis) <liubo03@inspur.com> Link: https://lore.kernel.org/r/20250718033039.3609-1-liubo03@inspur.com Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e91bed9 commit 890a8ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/erofs/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ config EROFS_FS_ZIP_ZSTD
147147
config EROFS_FS_ZIP_ACCEL
148148
bool "EROFS hardware decompression support"
149149
depends on EROFS_FS_ZIP
150+
select CRYPTO
151+
select CRYPTO_DEFLATE
150152
help
151153
Saying Y here includes hardware accelerator support for reading
152154
EROFS file systems containing compressed data. It gives better

0 commit comments

Comments
 (0)