From 1ae4ade28a28bc45811505a31667c2cafd6c5b92 Mon Sep 17 00:00:00 2001 From: Sebastien Buisson Date: Mon, 31 Jul 2023 11:43:44 +0200 Subject: [PATCH] EX-7998 lustre: Fix build with crypto_tfm_ctx on kernel 6.2 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 Change-Id: If10f721355da3e58ca541c17615e978334e8d718 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/51812 Tested-by: jenkins Tested-by: Jian Yu Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger --- lustre/include/lustre_crypto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/include/lustre_crypto.h b/lustre/include/lustre_crypto.h index 5c3093a..fcd498c 100644 --- a/lustre/include/lustre_crypto.h +++ b/lustre/include/lustre_crypto.h @@ -55,6 +55,7 @@ void ll_sbi_set_name_encrypt(struct ll_sb_info *sbi, bool set); #define LGZIP_MOD_NAME "crypto-lgzip" #include +#include /* 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. -- 1.8.3.1