]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: x86 - Fix build warnings about export.h
authorChengZhenghan <chengzhenghan@uniontech.com>
Wed, 11 Jun 2025 02:51:31 +0000 (10:51 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 23 Jun 2025 08:59:38 +0000 (16:59 +0800)
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 missing
arch/x86/crypto/aria_aesni_avx_glue.c:
 warning: EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/x86/crypto/camellia_aesni_avx_glue.c:
 warning: EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/x86/crypto/camellia_glue.c: warning:
 EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/x86/crypto/curve25519-x86_64.c:
 warning: EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/x86/crypto/serpent_avx_glue.c:
 warning: EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/x86/crypto/sm4_aesni_avx_glue.c:
 warning: EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/x86/crypto/twofish_glue.c:
 warning: EXPORT_SYMBOL() is used,
 but #include <linux/export.h> is missing
arch/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.

Signed-off-by: ChengZhenghan <chengzhenghan@uniontech.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aria_aesni_avx2_glue.c
arch/x86/crypto/aria_aesni_avx_glue.c
arch/x86/crypto/camellia_aesni_avx_glue.c
arch/x86/crypto/camellia_glue.c
arch/x86/crypto/curve25519-x86_64.c
arch/x86/crypto/serpent_avx_glue.c
arch/x86/crypto/sm4_aesni_avx_glue.c
arch/x86/crypto/twofish_glue.c
arch/x86/crypto/twofish_glue_3way.c

index b4bddcd5845770b52fdb92800463e369e0144c46..007b250f774cd9daaaa80bfab0f05625127d99c2 100644 (file)
@@ -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>
 
index ab9b38d05332af7fe8e046e0aa7da020b77d7bb3..4c88ef4eba8278c9e445512a57cb1b1f2e634cdd 100644 (file)
@@ -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>
 
index a7d1623881424d78a2f1a647922e02f4dc4d8698..5c321f255eb7bd11b73604a0e04f31e1f094e9bc 100644 (file)
@@ -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>
 
index 3bd37d6641216444cf2e71d824e7781f2a1fd96f..cbede120e5f299a3cca88a7845489f02ba4bad13 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <linux/unaligned.h>
 #include <linux/crypto.h>
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>
index dcfc0de333dea40bd1c19d9e3a20bfc3fc312ea7..d587f05c3c8c36fee927b29feffe1c120f0e8dca 100644 (file)
@@ -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>
index e640abc1cb8a7cf0542adb3228893422f375fbdb..9c8b3a335d5ca3818c2b31bc4d5865f8e47dbd51 100644 (file)
@@ -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>
 
index 72867fc49ce8e19c6cc83cf8c40fbadf72bdb92f..88caf418a06f1685c3aa6de24ff7162e56b171d6 100644 (file)
@@ -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>
index 4c67184dc573e70e19fefd3323837d259c82edaf..8e9906d369021dd622674db2c13023c2931604d0 100644 (file)
@@ -40,6 +40,7 @@
 
 #include <crypto/algapi.h>
 #include <crypto/twofish.h>
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>
index 1a1ecfa7f72afe196d2791abe5d5cb0df0fb9858..8ad77725bf60e7fe132af11f92a05483fc22fb17 100644 (file)
@@ -9,6 +9,7 @@
 #include <crypto/algapi.h>
 #include <crypto/twofish.h>
 #include <linux/crypto.h>
+#include <linux/export.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/types.h>