[PATCH] powerpc: work around sparse warnings in cputable.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 23 Mar 2006 06:36:59 +0000 (17:36 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 27 Mar 2006 03:48:06 +0000 (14:48 +1100)
commit7c92943c7b6c42fa631ac2b67aeb507e727cd75b
tree6fcfee97618ff9b2d23d639a825b62e935028496
parent5d5d7727a8cde78f798ecf04bac8031eff536f9d
[PATCH] powerpc: work around sparse warnings in cputable.h

Christoph noticed that sparse warned about all the enum tags in cuptable.h
that had values that required them to be type log. (enum tags are ints
according to the standard.)

This patch attempts to fix them in the least intrusive way possible by
turning them all into #defines except for the 32 bit CPU_FTRS_POSSIBLE and
CPU_FTRS_ALWAYS which are hard to construct that way.  This works because
these last two contain no bits above 2^31.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/cputable.h