Re: [-mm patch] mm.h: fix page_zone compile error

From: Dave Hansen
Date: Thu May 12 2005 - 17:12:19 EST


On Thu, 2005-05-12 at 23:42 +0200, Adrian Bunk wrote:
> On Thu, May 12, 2005 at 03:31:00AM -0700, Andrew Morton wrote:
> >...
> > Changes since 2.6.12-rc3-mm3:
> >...
> > +sparsemem-memory-model.patch
> >...
> > More sparsemem stuff
> >...
>
> This causes the following compile error with gcc 3.4 on i386:
>
> <-- snip -->
>
> ...
> CC mm/hugetlb.o
> mm/hugetlb.c: In function `enqueue_huge_page':
> include/linux/mm.h:500: sorry, unimplemented: inlining failed in call to
> 'page_zone': function not considered for inlining
> mm/hugetlb.c:486: sorry, unimplemented: called from here
> make[1]: *** [mm/hugetlb.o] Error 1
> make: *** [mm] Error 2

Any idea what actually causes that?

BTW, it doesn't seem to happen with gcc 2.95. Can you send me
your .config? I'll double-check.

-- Dave

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/