Re: [Patch] uml: compile error fix

From: Jeff Dike
Date: Mon Apr 14 2008 - 11:05:55 EST


On Sat, Apr 12, 2008 at 05:47:33PM +0800, WANG Cong wrote:
>
> This patch fixes this error:
>
> CC arch/um/kernel/smp.o
> In file included from /home/wangcong/projects/linux-2.6/arch/um/kernel/smp.c:9:
> include2/asm/tlb.h: In function âtlb_remove_pageâ:
> include2/asm/tlb.h:101: error: implicit declaration of function âpage_cache_releaseâ
> make[2]: *** [arch/um/kernel/smp.o] Error 1
> make[1]: *** [arch/um/kernel] Error 2
> make: *** [sub-make] Error 2
>
> And since including <linux/pagemap.h> in <linux/swap.h> will break sparc,
> we add this #include in uml's own header.

Sigh, ACK.

I took a stab at fixing this problem for real a while ago by
untangling the headers involved, but failed.

Jeff

--
Work email - jdike at linux dot intel dot com
--
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/