Use CRYPTO_API() etc. from include/crypto/api.h in preparation for compilation as part of support for FIPS 140 standalone modules. Generated using: ./fipsify.py --config CONFIG_CRYPTO_SHA512 --source crypto/sha512.c Signed-off-by: Vegard Nossum <vegard.nossum@xxxxxxxxxx> --- crypto/sha512.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/sha512.c b/crypto/sha512.c index fb1c520978ef..ee4639b0e74e 100644 --- a/crypto/sha512.c +++ b/crypto/sha512.c @@ -333,13 +333,13 @@ static int __init crypto_sha512_mod_init(void) { return crypto_register_shashes(algs, ARRAY_SIZE(algs)); } -module_init(crypto_sha512_mod_init); +crypto_module_init(crypto_sha512_mod_init); static void __exit crypto_sha512_mod_exit(void) { crypto_unregister_shashes(algs, ARRAY_SIZE(algs)); } -module_exit(crypto_sha512_mod_exit); +crypto_module_exit(crypto_sha512_mod_exit); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Crypto API support for SHA-384, SHA-512, HMAC-SHA384, and HMAC-SHA512"); -- 2.39.3