diff options
author | Herbert Xu | 2007-08-23 10:23:01 +0200 |
---|---|---|
committer | David S. Miller | 2007-10-11 01:55:40 +0200 |
commit | 791b4d5f73cbc16ee532ebac5bd82d51524d4f99 (patch) | |
tree | df9e5ee5a6e94892fb1056627caea4e494343083 /crypto/hash.c | |
parent | [CRYPTO] api: Add support for multiple template parameters (diff) | |
download | kernel-qcow2-linux-791b4d5f73cbc16ee532ebac5bd82d51524d4f99.tar.gz kernel-qcow2-linux-791b4d5f73cbc16ee532ebac5bd82d51524d4f99.tar.xz kernel-qcow2-linux-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 'crypto/hash.c')
-rw-r--r-- | crypto/hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/hash.c b/crypto/hash.c index 4fd470bd729b..7dcff671c19b 100644 --- a/crypto/hash.c +++ b/crypto/hash.c @@ -12,6 +12,7 @@ #include <linux/errno.h> #include <linux/kernel.h> #include <linux/module.h> +#include <linux/slab.h> #include <linux/seq_file.h> #include "internal.h" @@ -46,7 +47,7 @@ static int hash_setkey_unaligned(struct crypto_hash *crt, const u8 *key, } static int hash_setkey(struct crypto_hash *crt, const u8 *key, - unsigned int keylen) + unsigned int keylen) { struct crypto_tfm *tfm = crypto_hash_tfm(crt); struct hash_alg *alg = &tfm->__crt_alg->cra_hash; |