diff options
-rw-r--r-- | drivers/crypto/padlock-aes.c | 2 | ||||
-rw-r--r-- | drivers/crypto/padlock-sha.c | 8 | ||||
-rw-r--r-- | include/crypto/padlock.h (renamed from drivers/crypto/padlock.h) | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c index 2e992bc8015b..2e56508754d0 100644 --- a/drivers/crypto/padlock-aes.c +++ b/drivers/crypto/padlock-aes.c | |||
@@ -9,6 +9,7 @@ | |||
9 | 9 | ||
10 | #include <crypto/algapi.h> | 10 | #include <crypto/algapi.h> |
11 | #include <crypto/aes.h> | 11 | #include <crypto/aes.h> |
12 | #include <crypto/padlock.h> | ||
12 | #include <linux/module.h> | 13 | #include <linux/module.h> |
13 | #include <linux/init.h> | 14 | #include <linux/init.h> |
14 | #include <linux/types.h> | 15 | #include <linux/types.h> |
@@ -21,7 +22,6 @@ | |||
21 | #include <asm/byteorder.h> | 22 | #include <asm/byteorder.h> |
22 | #include <asm/processor.h> | 23 | #include <asm/processor.h> |
23 | #include <asm/i387.h> | 24 | #include <asm/i387.h> |
24 | #include "padlock.h" | ||
25 | 25 | ||
26 | /* | 26 | /* |
27 | * Number of data blocks actually fetched for each xcrypt insn. | 27 | * Number of data blocks actually fetched for each xcrypt insn. |
diff --git a/drivers/crypto/padlock-sha.c b/drivers/crypto/padlock-sha.c index d3a27e0119bc..adf075b6b9a8 100644 --- a/drivers/crypto/padlock-sha.c +++ b/drivers/crypto/padlock-sha.c | |||
@@ -13,6 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | #include <crypto/internal/hash.h> | 15 | #include <crypto/internal/hash.h> |
16 | #include <crypto/padlock.h> | ||
16 | #include <crypto/sha.h> | 17 | #include <crypto/sha.h> |
17 | #include <linux/err.h> | 18 | #include <linux/err.h> |
18 | #include <linux/module.h> | 19 | #include <linux/module.h> |
@@ -22,13 +23,6 @@ | |||
22 | #include <linux/kernel.h> | 23 | #include <linux/kernel.h> |
23 | #include <linux/scatterlist.h> | 24 | #include <linux/scatterlist.h> |
24 | #include <asm/i387.h> | 25 | #include <asm/i387.h> |
25 | #include "padlock.h" | ||
26 | |||
27 | #ifdef CONFIG_64BIT | ||
28 | #define STACK_ALIGN 16 | ||
29 | #else | ||
30 | #define STACK_ALIGN 4 | ||
31 | #endif | ||
32 | 26 | ||
33 | struct padlock_sha_desc { | 27 | struct padlock_sha_desc { |
34 | struct shash_desc fallback; | 28 | struct shash_desc fallback; |
diff --git a/drivers/crypto/padlock.h b/include/crypto/padlock.h index b728e4518bd1..d2cfa2ef49e8 100644 --- a/drivers/crypto/padlock.h +++ b/include/crypto/padlock.h | |||
@@ -15,9 +15,15 @@ | |||
15 | 15 | ||
16 | #define PADLOCK_ALIGNMENT 16 | 16 | #define PADLOCK_ALIGNMENT 16 |
17 | 17 | ||
18 | #define PFX "padlock: " | 18 | #define PFX KBUILD_MODNAME ": " |
19 | 19 | ||
20 | #define PADLOCK_CRA_PRIORITY 300 | 20 | #define PADLOCK_CRA_PRIORITY 300 |
21 | #define PADLOCK_COMPOSITE_PRIORITY 400 | 21 | #define PADLOCK_COMPOSITE_PRIORITY 400 |
22 | 22 | ||
23 | #ifdef CONFIG_64BIT | ||
24 | #define STACK_ALIGN 16 | ||
25 | #else | ||
26 | #define STACK_ALIGN 4 | ||
27 | #endif | ||
28 | |||
23 | #endif /* _CRYPTO_PADLOCK_H */ | 29 | #endif /* _CRYPTO_PADLOCK_H */ |