2010-12-16 18:18:14

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH -next] crypto: fix af_alg memory_allocated data type

From: Randy Dunlap <[email protected]>

Change data type to fix warning:

crypto/af_alg.c:35: warning: initialization from incompatible pointer type

Signed-off-by: Randy Dunlap <[email protected]>
---
crypto/af_alg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20101216.orig/crypto/af_alg.c
+++ linux-next-20101216/crypto/af_alg.c
@@ -27,7 +27,7 @@ struct alg_type_list {
struct list_head list;
};

-static atomic_t alg_memory_allocated;
+static atomic_long_t alg_memory_allocated;

static struct proto alg_proto = {
.name = "ALG",


2010-12-21 11:22:59

by Herbert Xu

[permalink] [raw]
Subject: Re: [PATCH -next] crypto: fix af_alg memory_allocated data type

On Thu, Dec 16, 2010 at 10:18:00AM -0800, Randy Dunlap wrote:
> From: Randy Dunlap <[email protected]>
>
> Change data type to fix warning:
>
> crypto/af_alg.c:35: warning: initialization from incompatible pointer type
>
> Signed-off-by: Randy Dunlap <[email protected]>

Applied. Thanks Randy!
--
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt