asm/cputable.h sparse warnings
Christoph Hellwig
hch at lst.de
Thu Mar 9 02:19:39 EST 2006
Looks like not many people are running sparse on powerpc ;-) For every
file compiled I get the churn of warnings below. The reason seems to be
that it's using large values in enums, something that's very murky in
the C standards, and gcc adds even less well-defined extensions to it
that make this code work in practice. I think the only sane fix is
to switch the cputype constants to cpp macros, although that'd make the
file a lot larger..
include/asm/cputable.h:330:6: warning: cast truncates bits from constant value (2000000241 becomes 241)
include/asm/cputable.h:330:24: warning: cast truncates bits from constant value (e000000241 becomes 241) include/asm/cputable.h:330:40:
warning: cast truncates bits from constant value (cf00100241 becomes 100241)
include/asm/cputable.h:331:6: warning: cast truncates bits from constant value (cf00100649 becomes 100649) include/asm/cputable.h:331:24:
warning: cast truncates bits from constant value (fcf00100241 becomes 100241)
include/asm/cputable.h:331:42: warning: cast truncates bits from constant value (21cf00100249 becomes 100249)
include/asm/cputable.h:372:6: warning: cast truncates bits from constant value (2000000241 becomes 241)
include/asm/cputable.h:372:24: warning: cast truncates bits from constant value (e000000241 becomes 241)
include/asm/cputable.h:372:40: warning: cast truncates bits from constant value (cf00100241 becomes 100241)
include/asm/cputable.h:373:6: warning: cast truncates bits from constant value (cf00100649 becomes 100649)
include/asm/cputable.h:373:24: warning: cast truncates bits from constant value (fcf00100241 becomes 100241)
include/asm/cputable.h:373:42: warning: cast truncates bits from constant value (21cf00100249 becomes 100249)
include/asm/cputable.h:409:6: warning: cast truncates bits from constant value (100000100649 becomes 100649)
More information about the Linuxppc64-dev
mailing list