x86_crypto: Fix build warnings about export.h
Subsystems (2)
PATCH 1/1 x86_crypto: Fix build warnings about export.h
From: ChengZhenghan <[email protected]>
I got some build warnings with W=1:arch/x86/coco/sev/core.c:arch/x86/crypto/aria_aesni_avx2_glue.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/aria_aesni_avx_glue.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/camellia_aesni_avx_glue.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/camellia_glue.c: warning:
EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/curve25519-x86_64.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/serpent_avx_glue.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/sm4_aesni_avx_glue.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/twofish_glue.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missingarch/x86/crypto/twofish_glue_3way.c:
warning: EXPORT_SYMBOL() is used,
but #include <linux/export.h> is missing
so I fixed these build warnings for x86_64.
--- arch/x86/crypto/aria_aesni_avx2_glue.c | 1 + arch/x86/crypto/aria_aesni_avx_glue.c | 1 + arch/x86/crypto/camellia_aesni_avx_glue.c | 1 + arch/x86/crypto/camellia_glue.c | 1 + arch/x86/crypto/curve25519-x86_64.c | 1 + arch/x86/crypto/serpent_avx_glue.c | 1 + arch/x86/crypto/sm4_aesni_avx_glue.c | 1 + arch/x86/crypto/twofish_glue.c | 1 + arch/x86/crypto/twofish_glue_3way.c | 1 + 9 files changed, 9 insertions(+)
arch/x86/crypto/aria_aesni_avx2_glue.c +1 -0
@@ -9,6 +9,7 @@#include <crypto/aria.h> #include <linux/crypto.h> #include <linux/err.h> +#include <linux/export.h> #include <linux/module.h> #include <linux/types.h>
arch/x86/crypto/aria_aesni_avx_glue.c +1 -0
@@ -9,6 +9,7 @@#include <crypto/aria.h> #include <linux/crypto.h> #include <linux/err.h> +#include <linux/export.h> #include <linux/module.h> #include <linux/types.h>
arch/x86/crypto/camellia_aesni_avx_glue.c +1 -0
@@ -8,6 +8,7 @@#include <crypto/algapi.h> #include <linux/crypto.h> #include <linux/err.h> +#include <linux/export.h> #include <linux/module.h> #include <linux/types.h>
arch/x86/crypto/camellia_glue.c +1 -0
@@ -13,6 +13,7 @@#include <linux/init.h> #include <linux/module.h> #include <linux/types.h> +#include <linux/export.h> #include <crypto/algapi.h> #include "camellia.h"
arch/x86/crypto/curve25519-x86_64.c +1 -0
@@ -7,6 +7,7 @@#include <crypto/curve25519.h> #include <crypto/internal/kpp.h> +#include <linux/export.h> #include <linux/types.h> #include <linux/jump_label.h> #include <linux/kernel.h>
arch/x86/crypto/serpent_avx_glue.c +1 -0
@@ -12,6 +12,7 @@#include <linux/types.h> #include <linux/crypto.h> #include <linux/err.h> +#include <linux/export.h> #include <crypto/algapi.h> #include <crypto/serpent.h>
arch/x86/crypto/sm4_aesni_avx_glue.c +1 -0
@@ -11,6 +11,7 @@#include <asm/fpu/api.h> #include <linux/module.h> #include <linux/crypto.h> +#include <linux/export.h> #include <linux/kernel.h> #include <crypto/internal/skcipher.h> #include <crypto/sm4.h>
arch/x86/crypto/twofish_glue.c +1 -0
@@ -42,6 +42,7 @@#include <crypto/twofish.h> #include <linux/init.h> #include <linux/module.h> +#include <linux/export.h> #include <linux/types.h> asmlinkage void twofish_enc_blk(struct twofish_ctx *ctx, u8 *dst,
arch/x86/crypto/twofish_glue_3way.c +1 -0
@@ -12,6 +12,7 @@#include <linux/init.h> #include <linux/module.h> #include <linux/types.h> +#include <linux/export.h> #include "twofish.h" #include "ecb_cbc_helpers.h"
Signature · 1 line
2.47.2
Herbert Xu
maintainerQuoted 34 lines · “ChengZhenghan”
From: ChengZhenghan <[email protected]>
I got some build warnings with W=1:
arch/x86/coco/sev/core.c:arch/x86/crypto/aria_aesni_avx2_glue.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/aria_aesni_avx_glue.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/camellia_aesni_avx_glue.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/camellia_glue.c: warning:
EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/curve25519-x86_64.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/serpent_avx_glue.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/sm4_aesni_avx_glue.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/twofish_glue.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missingarch/x86/crypto/twofish_glue_3way.c:
warning:EXPORT_SYMBOL()is used,
but #include <linux/export.h> is missing
so I fixed these build warnings forx86_64.Signed-off-by ChengZhenghan <[email protected]>
Quoted 11 lines
--- arch/x86/crypto/aria_aesni_avx2_glue.c | 1 + arch/x86/crypto/aria_aesni_avx_glue.c | 1 + arch/x86/crypto/camellia_aesni_avx_glue.c | 1 + arch/x86/crypto/camellia_glue.c | 1 + arch/x86/crypto/curve25519-x86_64.c | 1 + arch/x86/crypto/serpent_avx_glue.c | 1 + arch/x86/crypto/sm4_aesni_avx_glue.c | 1 + arch/x86/crypto/twofish_glue.c | 1 + arch/x86/crypto/twofish_glue_3way.c | 1 + 9 files changed, 9 insertions(+)
module.h always includes export.h so this is not needed at all.
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt