Re: [2.6.19-rc2-mm1] error: too few arguments to function âcrypto_alloc_hashâ
From: Edward Shishkin
Date: Tue Oct 17 2006 - 17:20:06 EST
Andrew James Wade wrote:
Hello,
The latest -mm introduced a new error:
CC fs/reiser4/plugin/crypto/digest.o
fs/reiser4/plugin/crypto/digest.c: In function âalloc_sha256â:
fs/reiser4/plugin/crypto/digest.c:17: error: too few arguments to function âcrypto_alloc_hashâ
make[2]: *** [fs/reiser4/plugin/crypto/digest.o] Error 1
make[1]: *** [fs/reiser4] Error 2
make: *** [fs] Error 2
Andrew Wade
The fix is attached.
Andrew, please apply.
Thanks.
Fixed alloc_sha256 (missed argument)
Signed-off-by: Edward Shishkin <edward@xxxxxxxxxxx>
---
linux-2.6.19-rc2-mm1/fs/reiser4/plugin/crypto/digest.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
--- linux-2.6.19-rc2-mm1/fs/reiser4/plugin/crypto/digest.c.orig
+++ linux-2.6.19-rc2-mm1/fs/reiser4/plugin/crypto/digest.c
@@ -14,7 +14,7 @@
static struct crypto_hash * alloc_sha256 (void)
{
#if REISER4_SHA256
- return crypto_alloc_hash ("sha256", 0);
+ return crypto_alloc_hash ("sha256", 0, CRYPTO_ALG_ASYNC);
#else
warning("edward-1418", "sha256 unsupported");
return ERR_PTR(-EINVAL);