diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-08-23 04:23:01 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:55:40 -0400 |
commit | 791b4d5f73cbc16ee532ebac5bd82d51524d4f99 (patch) | |
tree | df9e5ee5a6e94892fb1056627caea4e494343083 /crypto/hash.c | |
parent | 39e1ee011f42dbbcb0210c73ea728ae54cf63b06 (diff) |
[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 @@ | |||
12 | #include <linux/errno.h> | 12 | #include <linux/errno.h> |
13 | #include <linux/kernel.h> | 13 | #include <linux/kernel.h> |
14 | #include <linux/module.h> | 14 | #include <linux/module.h> |
15 | #include <linux/slab.h> | ||
15 | #include <linux/seq_file.h> | 16 | #include <linux/seq_file.h> |
16 | 17 | ||
17 | #include "internal.h" | 18 | #include "internal.h" |
@@ -46,7 +47,7 @@ static int hash_setkey_unaligned(struct crypto_hash *crt, const u8 *key, | |||
46 | } | 47 | } |
47 | 48 | ||
48 | static int hash_setkey(struct crypto_hash *crt, const u8 *key, | 49 | static int hash_setkey(struct crypto_hash *crt, const u8 *key, |
49 | unsigned int keylen) | 50 | unsigned int keylen) |
50 | { | 51 | { |
51 | struct crypto_tfm *tfm = crypto_hash_tfm(crt); | 52 | struct crypto_tfm *tfm = crypto_hash_tfm(crt); |
52 | struct hash_alg *alg = &tfm->__crt_alg->cra_hash; | 53 | struct hash_alg *alg = &tfm->__crt_alg->cra_hash; |