lib/crypto: Explicitly include <linux/export.h>
authorEric Biggers <ebiggers@kernel.org>
Fri, 13 Jun 2025 18:48:14 +0000 (11:48 -0700)
committerEric Biggers <ebiggers@kernel.org>
Mon, 30 Jun 2025 16:26:19 +0000 (09:26 -0700)
commite49a3eac9207e9575337f70feeb29430f6f16bb7
tree4015d009b6a174576d8ac9f791f4196e312ac3ac
parentd0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
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/20250613184814.50173-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
30 files changed:
lib/crypto/aes.c
lib/crypto/aescfb.c
lib/crypto/aesgcm.c
lib/crypto/arc4.c
lib/crypto/blake2s-generic.c
lib/crypto/blake2s.c
lib/crypto/chacha.c
lib/crypto/chacha20poly1305.c
lib/crypto/curve25519-generic.c
lib/crypto/des.c
lib/crypto/gf128mul.c
lib/crypto/libchacha.c
lib/crypto/memneq.c
lib/crypto/mpi/mpi-add.c
lib/crypto/mpi/mpi-bit.c
lib/crypto/mpi/mpi-cmp.c
lib/crypto/mpi/mpi-mul.c
lib/crypto/mpi/mpi-pow.c
lib/crypto/mpi/mpi-sub-ui.c
lib/crypto/mpi/mpicoder.c
lib/crypto/mpi/mpiutil.c
lib/crypto/poly1305-donna32.c
lib/crypto/poly1305-donna64.c
lib/crypto/poly1305-generic.c
lib/crypto/poly1305.c
lib/crypto/sha1.c
lib/crypto/sha256-generic.c
lib/crypto/sha256.c
lib/crypto/sm3.c
lib/crypto/utils.c