Whamcloud - gitweb
LU-14651 libcfs: use namespace CRYPTO_INTERNAL 05/45805/3
authorJian Yu <yujian@whamcloud.com>
Thu, 9 Dec 2021 08:13:23 +0000 (00:13 -0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:00:33 +0000 (22:00 +0000)
commit67e1017da0e5c71367336ccb77c4cb6f1fbc0e88
tree35bb7f55a669573e6b561dce12d71334f6a4c7ca
parentff9977b9e95606361cd1c9e6be0b99b6c9ef05d4
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

Change-Id: I908006f81ee632c2d02fe3dd6ac41fdd6296a4b0
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/45805
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Neil Brown <neilb@suse.de>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/autoconf/lustre-libcfs.m4
libcfs/libcfs/crypto/crypto.c
libcfs/libcfs/crypto/keysetup.c