asm/cputable.h sparse warnings

Christoph Hellwig hch at lst.de
Fri Mar 10 03:25:34 EST 2006


On Thu, Mar 09, 2006 at 11:50:36AM +1100, Stephen Rothwell wrote:
> Hi Christoph,
> 
> On Wed, 8 Mar 2006 16:19:39 +0100 Christoph Hellwig <hch at lst.de> wrote:
> >
> > 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..
> 
> Does the following patch help?  I don't think we necessarily want to do this,
> but we could.

The first hunk (which has most of the changes) doesn't apply to
mainline, looks like something changes there in your tree.



More information about the Linuxppc64-dev mailing list