Sparse complains about __constant_cpu_to_be32(1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux