From: "Kok, Auke" <auke-jan.h.kok@intel.com>
To: Richard Knutsson <ricknu-0@student.ltu.se>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Al Viro <viro@ftp.linux.org.uk>,
Linus Torvalds <torvalds@linux-foundation.org>,
Josh Triplett <josh@freedesktop.org>
Subject: Re: generic bool and sparse errors?
Date: Wed, 06 Jun 2007 13:17:44 -0700 [thread overview]
Message-ID: <46671668.4090805@intel.com> (raw)
In-Reply-To: <466708D8.90208@student.ltu.se>
Richard Knutsson wrote:
> Kok, Auke wrote:
>> I'm experimenting with using the generic bool type and using sparse I
>> get tons of these messages:
>>
>> warning: incorrect type in argument 4 (different signedness)
>> expected bool [unsigned] [usertype] *[unsigned] success
>> got bool *<noident>
>>
>> I'm not really worried about this, I assume that sparse hasn't caught
>> up with what bool really means, but perhaps this can be looked into by
>> someone who knows sparse well. The warnings don't really add up and
>> with more people switching to use the generic bool this may beceome
>> unwanted.
>
> Actually, I am "assigned" to that. :)
ah cool
> Just out of curiousity, where do you see those messages? In the log for
> allyesconfig on i386 I only found ntfs/super.c with similar output.
I was poking around replacing the boolean_t typedef in e1000, so it's nothing
upstream. Just run `sed -i s/boolean_t/bool/g` on all the files in
drivers/net/e1000 to see :)
the version of sparse is that in fc6, so that may be out-of-date (?).
>> alternatively we might need to reconsider the `typedef _Bool bool;`
>> declaration and force it to be unsigned. I'm not sure what to think of
>> that.
> I do not see how that would make any sense.
well the sparse warning is about signedness. Either sparse needs to "know" that
bool is unsigned, or the kernel headers need to somehow make bool unsigned...
the latter choice would come down to just that, but it doesn't look like a good
idea to me either somehow.
Auke
next prev parent reply other threads:[~2007-06-06 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-06 18:29 generic bool and sparse errors? Kok, Auke
2007-06-06 19:00 ` Jeff Garzik
2007-06-06 19:19 ` Richard Knutsson
2007-06-06 20:17 ` Kok, Auke [this message]
2007-06-06 20:24 ` Al Viro
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=46671668.4090805@intel.com \
--to=auke-jan.h.kok@intel.com \
--cc=josh@freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ricknu-0@student.ltu.se \
--cc=torvalds@linux-foundation.org \
--cc=viro@ftp.linux.org.uk \
/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