Re: [PATCH] fix build error when CONFIG_SWAP is not set
From: Sergei Shtylyov <hidden>
Date: 2011-01-24 19:33:04
Also in:
linux-mips, lkml
From: Sergei Shtylyov <hidden>
Date: 2011-01-24 19:33:04
Also in:
linux-mips, lkml
Hello. Yoichi Yuasa wrote:
In file included from
linux-2.6/arch/mips/include/asm/tlb.h:21,
from mm/pgtable-generic.c:9:
include/asm-generic/tlb.h: In function 'tlb_flush_mmu':
include/asm-generic/tlb.h:76: error: implicit declaration of function
'release_pages'
include/asm-generic/tlb.h: In function 'tlb_remove_page':
include/asm-generic/tlb.h:105: error: implicit declaration of function
'page_cache_release'
make[1]: *** [mm/pgtable-generic.o] Error 1
Signed-off-by: Yoichi Yuasa <redacted>[...]
diff --git a/include/linux/swap.h b/include/linux/swap.h index 4d55932..92c1be6 100644 --- a/include/linux/swap.h +++ b/include/linux/swap.h@@ -8,6 +8,7 @@ #include <linux/memcontrol.h> #include <linux/sched.h> #include <linux/node.h> +#include <linux/pagemap.h>
Hm, if the errors are in <asm-generic/tlb.h>, why add #include in
<linux/swap.h>?
WBR. Sergei
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>