Whamcloud - gitweb
LU-14651 libcfs: use namespace CRYPTO_INTERNAL
authorJian Yu <yujian@whamcloud.com>
Fri, 21 Jan 2022 02:13:57 +0000 (18:13 -0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 22 Jan 2022 08:22:44 +0000 (08:22 +0000)
commitd3404cdeabf13ad7a8d8344851a87ad7ca95146b
tree9c51ca50e3ff85bc39daafecc3344042bbfab990
parent9ae9b94015ff59adcdeca2ee6843ccf8f788165d
LU-14651 libcfs: use namespace CRYPTO_INTERNAL

In kernel 5.12 commit 0eb76ba29d16df2951d37c54ca279c4e5630b071,
cipher routines are moved into include/crypto/internal/cipher.h,
and the symbol exports are moved into namespace CRYPTO_INTERNAL.

This patch accommodates the above changes and fixes the following
build errors:
ERROR: modpost: module libcfs uses symbol crypto_cipher_encrypt_one
from namespace CRYPTO_INTERNAL, but does not import it.
ERROR: modpost: module libcfs uses symbol crypto_cipher_setkey
from namespace CRYPTO_INTERNAL, but does not import it.

Test-Parameters: trivial

Lustre-change: https://review.whamcloud.com/45805
Lustre-commit: 67e1017da0e5c71367336ccb77c4cb6f1fbc0e88

Change-Id: I908006f81ee632c2d02fe3dd6ac41fdd6296a4b0
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46247
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/libcfs/crypto/crypto.c
libcfs/libcfs/crypto/keysetup.c