From: Herbert Xu <herbert@gondor.hengli.com.au>
To: David Miller <davem@davemloft.net>
Cc: segooon@gmail.com, linux-crypto@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: n2 RNG driver bogus cast removal
Date: Mon, 9 Aug 2010 10:26:07 -0400 [thread overview]
Message-ID: <20100809142607.GA19862@gondor.apana.org.au> (raw)
In-Reply-To: <20100809.004514.73697921.davem@davemloft.net>
On Mon, Aug 09, 2010 at 12:45:14AM -0700, David Miller wrote:
>
> 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:
>
> drivers/char/hw_random/n2-drv.c: In function ‘n2rng_data_read’:
> drivers/char/hw_random/n2-drv.c:390: warning: initialization makes pointer from integer without a cast
>
> 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,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2010-08-09 14:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-09 7:45 David Miller
2010-08-09 14:26 ` Herbert Xu [this message]
2010-08-09 19:32 ` Vasiliy Kulikov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100809142607.GA19862@gondor.apana.org.au \
--to=herbert@gondor.hengli.com.au \
--cc=davem@davemloft.net \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=segooon@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®