aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ablkcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-08-23 16:23:01 +0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 16:55:40 -0700
commit791b4d5f73cbc16ee532ebac5bd82d51524d4f99 (patch)
treedf9e5ee5a6e94892fb1056627caea4e494343083 /crypto/ablkcipher.c
parent[CRYPTO] api: Add support for multiple template parameters (diff)
downloadlinux-dev-791b4d5f73cbc16ee532ebac5bd82d51524d4f99.tar.xz
linux-dev-791b4d5f73cbc16ee532ebac5bd82d51524d4f99.zip
[CRYPTO] api: Add missing headers for setkey_unaligned
This patch ensures that kernel.h and slab.h are included for the setkey_unaligned function. It also breaks a couple of long lines. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/ablkcipher.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/crypto/ablkcipher.c b/crypto/ablkcipher.c
index 3dbb1cc6eab5..47438b650c92 100644
--- a/crypto/ablkcipher.c
+++ b/crypto/ablkcipher.c
@@ -16,10 +16,13 @@
#include <crypto/algapi.h>
#include <linux/errno.h>
#include <linux/init.h>
+#include <linux/kernel.h>
#include <linux/module.h>
+#include <linux/slab.h>
#include <linux/seq_file.h>
-static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int keylen)
+static int setkey_unaligned(struct crypto_ablkcipher *tfm, const u8 *key,
+ unsigned int keylen)
{
struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm);
unsigned long alignmask = crypto_ablkcipher_alignmask(tfm);