aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/blake2s-generic.c
diff options
context:
space:
mode:
authorEric Biggers <[email protected]>2025-06-13 18:48:14 +0000
committerEric Biggers <[email protected]>2025-06-30 16:26:19 +0000
commite49a3eac9207e9575337f70feeb29430f6f16bb7 (patch)
tree4015d009b6a174576d8ac9f791f4196e312ac3ac /lib/crypto/blake2s-generic.c
parentLinux 6.16-rc4 (diff)
downloadkernel-e49a3eac9207e9575337f70feeb29430f6f16bb7.tar.gz
kernel-e49a3eac9207e9575337f70feeb29430f6f16bb7.zip
lib/crypto: Explicitly include <linux/export.h>
Fix build warnings with W=1 that started appearing after commit a934a57a42f6 ("scripts/misc-check: check missing #include <linux/export.h> when W=1"). While at it, also sort the include lists alphabetically. (Keep asm/irqflags.h last, as otherwise it doesn't build on alpha.) This handles all of lib/crypto/, but not arch/*/lib/crypto/. The exports in arch/*/lib/crypto/ will go away when the code is properly integrated into lib/crypto/ as planned. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
Diffstat (limited to 'lib/crypto/blake2s-generic.c')
-rw-r--r--lib/crypto/blake2s-generic.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/crypto/blake2s-generic.c b/lib/crypto/blake2s-generic.c
index 09682136b57c..9828176a2efe 100644
--- a/lib/crypto/blake2s-generic.c
+++ b/lib/crypto/blake2s-generic.c
@@ -9,11 +9,12 @@
*/
#include <crypto/internal/blake2s.h>
-#include <linux/types.h>
-#include <linux/string.h>
-#include <linux/kernel.h>
-#include <linux/init.h>
#include <linux/bug.h>
+#include <linux/export.h>
+#include <linux/init.h>
+#include <linux/kernel.h>
+#include <linux/string.h>
+#include <linux/types.h>
#include <linux/unaligned.h>
static const u8 blake2s_sigma[10][16] = {