From 791b4d5f73cbc16ee532ebac5bd82d51524d4f99 Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 23 Aug 2007 16:23:01 +0800 Subject: [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 --- crypto/hash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'crypto/hash.c') diff --git a/crypto/hash.c b/crypto/hash.c index 4fd470bd729..7dcff671c19 100644 --- a/crypto/hash.c +++ b/crypto/hash.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #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; -- cgit v1.2.3