mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] erofs: fix build error with CONFIG_EROFS_FS_ZIP_ACCEL=y
@ 2025-07-17  1:34 Bo Liu
  2025-07-17  1:39 ` Gao Xiang
  0 siblings, 1 reply; 3+ messages in thread
From: Bo Liu @ 2025-07-17  1:34 UTC (permalink / raw)
  To: xiang, chao; +Cc: linux-erofs, linux-kernel, Bo Liu

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

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 fs/erofs/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/erofs/Kconfig b/fs/erofs/Kconfig
index 6beeb7063871..60510a041bf1 100644
--- a/fs/erofs/Kconfig
+++ b/fs/erofs/Kconfig
@@ -147,6 +147,7 @@ config EROFS_FS_ZIP_ZSTD
 config EROFS_FS_ZIP_ACCEL
 	bool "EROFS hardware decompression support"
 	depends on EROFS_FS_ZIP
+	select CRYPTO
 	help
 	  Saying Y here includes hardware accelerator support for reading
 	  EROFS file systems containing compressed data.  It gives better
-- 
2.31.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] erofs: fix build error with CONFIG_EROFS_FS_ZIP_ACCEL=y
  2025-07-17  1:34 [PATCH] erofs: fix build error with CONFIG_EROFS_FS_ZIP_ACCEL=y Bo Liu
@ 2025-07-17  1:39 ` Gao Xiang
  2025-07-17  1:43   ` Bo Liu (刘波)-浪潮信息
  0 siblings, 1 reply; 3+ messages in thread
From: Gao Xiang @ 2025-07-17  1:39 UTC (permalink / raw)
  To: Bo Liu, xiang, chao; +Cc: linux-erofs, linux-kernel



On 2025/7/17 09:34, Bo Liu wrote:
> 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

Could you add a `Fixes` tag for this?

> 
> Signed-off-by: Bo Liu <liubo03@inspur.com>


Thanks, let me reconfirm if if can resolved the issue.

Thanks,
Gao Xiang

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] erofs: fix build error with CONFIG_EROFS_FS_ZIP_ACCEL=y
  2025-07-17  1:39 ` Gao Xiang
@ 2025-07-17  1:43   ` Bo Liu (刘波)-浪潮信息
  0 siblings, 0 replies; 3+ messages in thread
From: Bo Liu (刘波)-浪潮信息 @ 2025-07-17  1:43 UTC (permalink / raw)
  To: hsiangkao, xiang, chao; +Cc: linux-erofs, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

>On 2025/7/17 09:34, Bo Liu wrote:
>> 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
>
>Could you add a `Fixes` tag for this?
>
I will add this.

Thanks
Bo Liu

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5791 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-17  1:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-17  1:34 [PATCH] erofs: fix build error with CONFIG_EROFS_FS_ZIP_ACCEL=y Bo Liu
2025-07-17  1:39 ` Gao Xiang
2025-07-17  1:43   ` Bo Liu (刘波)-浪潮信息

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®