From 0cbed7f0261639eff914b1a610d29293936bca78 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Thu, 2 Jan 2020 18:08:45 -0800 Subject: [PATCH] Static symbols exported by ICP The crypto_cipher_init_prov and crypto_cipher_init are declared static and should not be exported by the ICP. This resolves the following warnings observed when building with the 5.4 kernel. WARNING: "crypto_cipher_init" [.../icp] is a static EXPORT_SYMBOL WARNING: "crypto_cipher_init_prov" [.../icp] is a static EXPORT_SYMBOL Reviewed-by: Tony Hutter Signed-off-by: Brian Behlendorf Closes #9791 --- module/icp/api/kcf_cipher.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/module/icp/api/kcf_cipher.c b/module/icp/api/kcf_cipher.c index 1c9f6873e2..d66c1aafb1 100644 --- a/module/icp/api/kcf_cipher.c +++ b/module/icp/api/kcf_cipher.c @@ -916,8 +916,6 @@ crypto_decrypt_single(crypto_context_t context, crypto_data_t *ciphertext, } #if defined(_KERNEL) -EXPORT_SYMBOL(crypto_cipher_init_prov); -EXPORT_SYMBOL(crypto_cipher_init); EXPORT_SYMBOL(crypto_encrypt_prov); EXPORT_SYMBOL(crypto_encrypt); EXPORT_SYMBOL(crypto_encrypt_init_prov);