Skip to content

Commit a04ea6f

Browse files
ardbiesheuvelherbertx
authored andcommitted
crypto: x86 - use local headers for x86 specific shared declarations
The Camellia, Serpent and Twofish related header files only contain declarations that are shared between different implementations of the respective algorithms residing under arch/x86/crypto, and none of their contents should be used elsewhere. So move the header files into the same location, and use local #includes instead. Acked-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 64ca771 commit a04ea6f

12 files changed

+8
-8
lines changed
File renamed without changes.

arch/x86/crypto/camellia_aesni_avx2_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Copyright © 2013 Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
66
*/
77

8-
#include <asm/crypto/camellia.h>
98
#include <crypto/algapi.h>
109
#include <crypto/internal/simd.h>
1110
#include <linux/crypto.h>
1211
#include <linux/err.h>
1312
#include <linux/module.h>
1413
#include <linux/types.h>
1514

15+
#include "camellia.h"
1616
#include "ecb_cbc_helpers.h"
1717

1818
#define CAMELLIA_AESNI_PARALLEL_BLOCKS 16

arch/x86/crypto/camellia_aesni_avx_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
* Copyright © 2012-2013 Jussi Kivilinna <jussi.kivilinna@iki.fi>
66
*/
77

8-
#include <asm/crypto/camellia.h>
98
#include <crypto/algapi.h>
109
#include <crypto/internal/simd.h>
1110
#include <linux/crypto.h>
1211
#include <linux/err.h>
1312
#include <linux/module.h>
1413
#include <linux/types.h>
1514

15+
#include "camellia.h"
1616
#include "ecb_cbc_helpers.h"
1717

1818
#define CAMELLIA_AESNI_PARALLEL_BLOCKS 16

arch/x86/crypto/camellia_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#include <linux/module.h>
1515
#include <linux/types.h>
1616
#include <crypto/algapi.h>
17-
#include <asm/crypto/camellia.h>
1817

18+
#include "camellia.h"
1919
#include "ecb_cbc_helpers.h"
2020

2121
/* regular block cipher functions */
File renamed without changes.
File renamed without changes.

arch/x86/crypto/serpent_avx2_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <crypto/algapi.h>
1313
#include <crypto/internal/simd.h>
1414
#include <crypto/serpent.h>
15-
#include <asm/crypto/serpent-avx.h>
1615

16+
#include "serpent-avx.h"
1717
#include "ecb_cbc_helpers.h"
1818

1919
#define SERPENT_AVX2_PARALLEL_BLOCKS 16

arch/x86/crypto/serpent_avx_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#include <crypto/algapi.h>
1616
#include <crypto/internal/simd.h>
1717
#include <crypto/serpent.h>
18-
#include <asm/crypto/serpent-avx.h>
1918

19+
#include "serpent-avx.h"
2020
#include "ecb_cbc_helpers.h"
2121

2222
/* 8-way parallel cipher functions */

arch/x86/crypto/serpent_sse2_glue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include <crypto/b128ops.h>
2121
#include <crypto/internal/simd.h>
2222
#include <crypto/serpent.h>
23-
#include <asm/crypto/serpent-sse2.h>
2423

24+
#include "serpent-sse2.h"
2525
#include "ecb_cbc_helpers.h"
2626

2727
static int serpent_setkey_skcipher(struct crypto_skcipher *tfm,
File renamed without changes.

0 commit comments

Comments
 (0)