public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* generic bool and sparse errors?
@ 2007-06-06 18:29 Kok, Auke
  2007-06-06 19:00 ` Jeff Garzik
  2007-06-06 19:19 ` Richard Knutsson
  0 siblings, 2 replies; 5+ messages in thread
From: Kok, Auke @ 2007-06-06 18:29 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Al Viro, Linus Torvalds, Josh Triplett


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.

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.

Cheers,

Auke

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-06 20:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-06-06 20:24     ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox