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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <[email protected]>
---
 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);

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux