From: Herbert Xu Subject: Re: n2 RNG driver bogus cast removal Date: Mon, 9 Aug 2010 10:26:07 -0400 Message-ID: <20100809142607.GA19862@gondor.apana.org.au> References: <20100809.004514.73697921.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: segooon@gmail.com, linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org To: David Miller Return-path: Received: from helcar.apana.org.au ([209.40.204.226]:46557 "EHLO fornost.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752521Ab0HIO0P (ORCPT ); Mon, 9 Aug 2010 10:26:15 -0400 Content-Disposition: inline In-Reply-To: <20100809.004514.73697921.davem@davemloft.net> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Mon, Aug 09, 2010 at 12:45:14AM -0700, David Miller wrote: >=20 > Kulikov, can you at least build test your patches? Casts are not > always incorrect, particularly when private cookies are "unsigned > long" as is the case here: >=20 > drivers/char/hw_random/n2-drv.c: In function =E2=80=98n2rng_data_read= =E2=80=99: > drivers/char/hw_random/n2-drv.c:390: warning: initialization makes po= inter from integer without a cast >=20 > Herbert, please revert this change, thanks. And I suspect there > might be more of these hwrng driver duds that went into the tree, > it's worth checking out. :-) Thanks Dave. I'll revert it for now. However, it probably makes sense to change priv into a void * as most drivers use it as a pointer instead of an integer. Thanks, --=20 Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt