Skip to content

Commit 0c3dc78

Browse files
committed
crypto: algapi - Remove skbuff.h inclusion
The header file algapi.h includes skbuff.h unnecessarily since all we need is a forward declaration for struct sk_buff. This patch removes that inclusion. Unfortunately skbuff.h pulls in a lot of things and drivers over the years have come to rely on it so this patch adds a lot of missing inclusions that result from this. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 1dbb920 commit 0c3dc78

32 files changed

Lines changed: 35 additions & 8 deletions

‎arch/powerpc/crypto/crc-vpmsum_test.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <crypto/internal/hash.h>
1010
#include <linux/init.h>
1111
#include <linux/module.h>
12+
#include <linux/random.h>
1213
#include <linux/string.h>
1314
#include <linux/kernel.h>
1415
#include <linux/cpufeature.h>

‎arch/x86/crypto/blake2s-glue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/jump_label.h>
1212
#include <linux/kernel.h>
1313
#include <linux/module.h>
14+
#include <linux/sizes.h>
1415

1516
#include <asm/cpufeature.h>
1617
#include <asm/fpu/api.h>

‎arch/x86/crypto/chacha_glue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <crypto/internal/skcipher.h>
1313
#include <linux/kernel.h>
1414
#include <linux/module.h>
15+
#include <linux/sizes.h>
1516
#include <asm/simd.h>
1617

1718
asmlinkage void chacha_block_xor_ssse3(u32 *state, u8 *dst, const u8 *src,

‎arch/x86/crypto/curve25519-x86_64.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/jump_label.h>
1212
#include <linux/kernel.h>
1313
#include <linux/module.h>
14+
#include <linux/scatterlist.h>
1415

1516
#include <asm/cpufeature.h>
1617
#include <asm/processor.h>

‎arch/x86/crypto/nhpoly1305-avx2-glue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <crypto/internal/simd.h>
1111
#include <crypto/nhpoly1305.h>
1212
#include <linux/module.h>
13+
#include <linux/sizes.h>
1314
#include <asm/simd.h>
1415

1516
asmlinkage void nh_avx2(const u32 *key, const u8 *message, size_t message_len,

‎arch/x86/crypto/nhpoly1305-sse2-glue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <crypto/internal/simd.h>
1111
#include <crypto/nhpoly1305.h>
1212
#include <linux/module.h>
13+
#include <linux/sizes.h>
1314
#include <asm/simd.h>
1415

1516
asmlinkage void nh_sse2(const u32 *key, const u8 *message, size_t message_len,

‎arch/x86/crypto/poly1305_glue.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/jump_label.h>
1212
#include <linux/kernel.h>
1313
#include <linux/module.h>
14+
#include <linux/sizes.h>
1415
#include <asm/intel-family.h>
1516
#include <asm/simd.h>
1617

‎crypto/crypto_engine.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <linux/err.h>
1111
#include <linux/delay.h>
12+
#include <linux/device.h>
1213
#include <crypto/engine.h>
1314
#include <uapi/linux/sched/types.h>
1415
#include "internal.h"

‎crypto/ecrdsa.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <crypto/internal/akcipher.h>
2323
#include <crypto/akcipher.h>
2424
#include <linux/oid_registry.h>
25+
#include <linux/scatterlist.h>
2526
#include "ecrdsa_params.asn1.h"
2627
#include "ecrdsa_pub_key.asn1.h"
2728
#include "ecc.h"

‎crypto/jitterentropy-kcapi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@
3737
* DAMAGE.
3838
*/
3939

40+
#include <linux/kernel.h>
4041
#include <linux/module.h>
4142
#include <linux/slab.h>
4243
#include <linux/fips.h>
4344
#include <linux/time.h>
44-
#include <linux/crypto.h>
4545
#include <crypto/internal/rng.h>
4646

4747
#include "jitterentropy.h"

0 commit comments

Comments
 (0)