Re: [2.6.19-rc2-mm1] error: too few arguments to function ‘crypto_alloc_hash’

Edward Shishkin
2006-10-17T21:19:40Z

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

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.

[-- Attachment #2: reiser4-fix-alloc_sha256.patch --]
[-- Type: text/x-patch, Size: 606 bytes --]

Fixed alloc_sha256 (missed argument)

Signed-off-by: Edward Shishkin <edward@namesys.com>
---
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);