From: "Philipp Marek" <philipp@marek.priv.at>
To: "Sam Ravnborg" <sam@ravnborg.org>
Cc: trivial@kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [patch] removes casting of (void*) private structure members
Date: Fri, 30 May 2008 06:37:08 +0200 (CEST) [thread overview]
Message-ID: <18740.193.171.152.33.1212122228.squirrel@webmail.marek.priv.at> (raw)
In-Reply-To: <20080529182510.GA15712@uranus.ravnborg.org>
Hello Sam,
you wrote:
> Sample from your patch:
...
> Therefore the cast is legitimate.
>
> And I expect gcc to emit:
> warning: assignment makes pointer from integer without a cast
Possibly mine didn't ... I'm getting some build errors related to static
variables being initialized via htonl(), but I did a compile run with this
patch.
I think I used a clean kernel for testing - but maybe I was in the tree
where I tested converting some "unsigned long priv;" to "void*", looking
for problems - as I wrote:
> > There are some private structure variables that are not defined as
> > (void*), (but int or long) and cannot be done without a
> > cast; examples in
> > drivers/char/hw_random/intel-rng.c
...
> > Should these be converted to (void*), and an additional
> > patch supplied?
If I do a patch for them, can that be a trivial patch, or should I send
each type conversion to the maintainer?
Regards,
Phil
prev parent reply other threads:[~2008-05-30 4:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-29 17:33 Philipp Marek
2008-05-29 18:25 ` Sam Ravnborg
2008-05-30 4:37 ` Philipp Marek [this message]
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=18740.193.171.152.33.1212122228.squirrel@webmail.marek.priv.at \
--to=philipp@marek.priv.at \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
--cc=trivial@kernel.org \
/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®