crypto: padlock - Move padlock.h into include/crypto
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Jan 2011 03:52:00 +0000 (14:52 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 7 Jan 2011 03:52:00 +0000 (14:52 +1100)
This patch moves padlock.h from drivers/crypto into include/crypto
so that it may be used by the via-rng driver.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/padlock-aes.c
drivers/crypto/padlock-sha.c
include/crypto/padlock.h [moved from drivers/crypto/padlock.h with 82% similarity]

index 2e992bc8015b7bd63bf0c5b4b878b8da1bfa69c4..2e56508754d0767a6078b96ba6ae7ba6e6c9765d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <crypto/algapi.h>
 #include <crypto/aes.h>
+#include <crypto/padlock.h>
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/types.h>
@@ -21,7 +22,6 @@
 #include <asm/byteorder.h>
 #include <asm/processor.h>
 #include <asm/i387.h>
-#include "padlock.h"
 
 /*
  * Number of data blocks actually fetched for each xcrypt insn.
index d3a27e0119bc2ebc907f9c82c10cedae05540a0c..adf075b6b9a810f376698c09c2f00446bf71614b 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <crypto/internal/hash.h>
+#include <crypto/padlock.h>
 #include <crypto/sha.h>
 #include <linux/err.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/scatterlist.h>
 #include <asm/i387.h>
-#include "padlock.h"
-
-#ifdef CONFIG_64BIT
-#define STACK_ALIGN 16
-#else
-#define STACK_ALIGN 4
-#endif
 
 struct padlock_sha_desc {
        struct shash_desc fallback;
similarity index 82%
rename from drivers/crypto/padlock.h
rename to include/crypto/padlock.h
index b728e4518bd1582958b20cc330bfe8d8400ba11b..d2cfa2ef49e822e35d344b504c0f2dec29720881 100644 (file)
 
 #define PADLOCK_ALIGNMENT 16
 
-#define PFX    "padlock: "
+#define PFX    KBUILD_MODNAME ": "
 
 #define PADLOCK_CRA_PRIORITY   300
 #define PADLOCK_COMPOSITE_PRIORITY 400
 
+#ifdef CONFIG_64BIT
+#define STACK_ALIGN 16
+#else
+#define STACK_ALIGN 4
+#endif
+
 #endif /* _CRYPTO_PADLOCK_H */