uml: compile error fix
PATCH 1/1 uml: compile error fix
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.
---
include/asm-um/tlb.h +1 -0
@@ -1,6 +1,7 @@#ifndef __UM_TLB_H#define __UM_TLB_H +#include <linux/pagemap.h> #include <linux/swap.h> #include <asm/percpu.h> #include <asm/pgalloc.h>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
Quoted 11 lines · WANG Cong
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
Quoted 2 lines
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
Signature · 11 lines
Work email - jdike at linux dot intel dot com ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ User-mode-linux-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel