[Ocf-linux-users] [PATCH] Fix missing crypto_alloc_ablkcipher symbol
Brought to you by:
david-m
From: James H. <jam...@gm...> - 2022-10-08 09:13:19
|
The crypto_alloc_ablkcipher symbol was removed as of linux version 4.8.0. Signed-off-by: James Hilliard <jam...@gm...> --- ocf/cryptosoft.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ocf/cryptosoft.c b/ocf/cryptosoft.c index caf9c06..841d41e 100644 --- a/ocf/cryptosoft.c +++ b/ocf/cryptosoft.c @@ -190,9 +190,11 @@ static struct kmem_cache *swcr_req_cache; #define plain(X) #X , 0 #endif /* if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) || LINUX_VERSION_CODE >= KERNEL_VERSION(4,8,0) +#define crypto_alloc_ablkcipher(a,b,c) (NULL) +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22) /* no ablkcipher in older kernels */ -#define crypto_alloc_ablkcipher(a,b,c) (NULL) #define crypto_ablkcipher_tfm(x) ((struct crypto_tfm *)(x)) #define crypto_ablkcipher_set_flags(a, b) /* nop */ #define crypto_ablkcipher_setkey(x, y, z) (-EINVAL) -- 2.37.3 |