Whamcloud - gitweb
EX-7998 lustre: Fix build with crypto_tfm_ctx on kernel 6.2
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 31 Jul 2023 09:43:44 +0000 (11:43 +0200)
committerAndreas Dilger <adilger@whamcloud.com>
Tue, 1 Aug 2023 22:04:12 +0000 (22:04 +0000)
In recent kernels, commit e634ac4
"crypto: api - Add crypto_tfm_ctx_dma"
moved crypto_tfm_ctx into algapi.h. So this file must be included
from lustre_crypto.h.

Fixes: 8238c4e7fe ("EX-6275 lustre: add lz4 and lz4hc kernel modules")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: If10f721355da3e58ca541c17615e978334e8d718
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51812
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Jian Yu <yujian@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_crypto.h

index 5c3093a..fcd498c 100644 (file)
@@ -55,6 +55,7 @@ void ll_sbi_set_name_encrypt(struct ll_sb_info *sbi, bool set);
 #define LGZIP_MOD_NAME         "crypto-lgzip"
 
 #include <linux/crypto.h>
+#include <crypto/algapi.h>
 /* This is how 'level' is passed to the compression algorithm through
  * the Cyrpto API when using the generic variant. This is taken into
  * account only by the Lustre-modified lz4 and lz4hc modules.