linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Sparse complains about __constant_cpu_to_be32(1)
@ 2010-10-30  9:57 Bart Van Assche
  0 siblings, 0 replies; only message in thread
From: Bart Van Assche @ 2010-10-30  9:57 UTC (permalink / raw)
  To: linux-sparse; +Cc: Vladislav Bolkhovitin

Hello,

Even with the most recent sparse version, I see the following when
running sparse on an x86_64 system:
* sparse does not complain about __constant_cpu_to_be32(0xFFFFFFFF),
as expected.
* sparse complains about __constant_cpu_to_be32(1), which I did not
expect. The warning sparse prints is:

warning: cast truncates bits from constant value (1000000 becomes 0)

Can anyone tell me whether that's a bug or a feature ?

Thanks,

Bart.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-30  9:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-30  9:57 Sparse complains about __constant_cpu_to_be32(1) Bart Van Assche

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).