diff options
| author | 2025-06-13 11:48:14 -0700 | |
|---|---|---|
| committer | 2025-06-30 09:26:19 -0700 | |
| commit | e49a3eac9207e9575337f70feeb29430f6f16bb7 (patch) | |
| tree | 4015d009b6a174576d8ac9f791f4196e312ac3ac /lib/crypto/des.c | |
| parent | Linux 6.16-rc4 (diff) | |
| download | wireguard-linux-e49a3eac9207e9575337f70feeb29430f6f16bb7.tar.xz wireguard-linux-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/20250613184814.50173-1-ebiggers@kernel.org
Signed-off-by: Eric Biggers <ebiggers@kernel.org>
Diffstat (limited to 'lib/crypto/des.c')
| -rw-r--r-- | lib/crypto/des.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/crypto/des.c b/lib/crypto/des.c index d3423b34a8e9..a906070136dc 100644 --- a/lib/crypto/des.c +++ b/lib/crypto/des.c @@ -7,21 +7,20 @@ * Copyright (c) 2005 Dag Arne Osvik <da@osvik.no> */ +#include <crypto/des.h> +#include <crypto/internal/des.h> #include <linux/bitops.h> #include <linux/compiler.h> #include <linux/crypto.h> #include <linux/errno.h> +#include <linux/export.h> #include <linux/fips.h> #include <linux/init.h> #include <linux/module.h> #include <linux/string.h> #include <linux/types.h> - #include <linux/unaligned.h> -#include <crypto/des.h> -#include <crypto/internal/des.h> - #define ROL(x, r) ((x) = rol32((x), (r))) #define ROR(x, r) ((x) = ror32((x), (r))) |
