summaryrefslogtreecommitdiff
path: root/crypto/cipher.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
commitda5ae9a0879ef935c644e986b7df8545519e3276 (patch)
tree821d7226807fe5b8601234269be2a22c4fee875c /crypto/cipher.c
parent057ebdf91a143c336f150ec34d81148adffecf85 (diff)
downloadlinux-crypto-da5ae9a0879ef935c644e986b7df8545519e3276.tar.gz
linux-crypto-da5ae9a0879ef935c644e986b7df8545519e3276.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 'crypto/cipher.c')
-rw-r--r--crypto/cipher.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypto/cipher.c b/crypto/cipher.c
index fc6b46f2..9a1a7316 100644
--- a/crypto/cipher.c
+++ b/crypto/cipher.c
@@ -16,11 +16,12 @@
#include <linux/kernel.h>
#include <linux/crypto.h>
#include <linux/errno.h>
-#include <linux/scatterlist.h>
+#include <linux/slab.h>
#include <linux/string.h>
#include "internal.h"
-static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen)
+static int setkey_unaligned(struct crypto_tfm *tfm, const u8 *key,
+ unsigned int keylen)
{
struct cipher_alg *cia = &tfm->__crt_alg->cra_cipher;
unsigned long alignmask = crypto_tfm_alg_alignmask(tfm);