Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bb7de070d2cf11f92341c40cd1810e8eebfbcbf8 Commit: bb7de070d2cf11f92341c40cd1810e8eebfbcbf8 Parent: c2f4d36640947ddd13af7a2c36d197eb9fe5280a Author: Paul Mundt <[EMAIL PROTECTED]> AuthorDate: Wed Feb 13 14:09:03 2008 +0900 Committer: Paul Mundt <[EMAIL PROTECTED]> CommitDate: Thu Feb 14 14:22:11 2008 +0900
sh: asm/tlb.h needs linux/pagemap.h for CONFIG_SWAP=n. linux/swap.h really wants to include linux/pagemap.h in order to satisfy the page_cache_release()/release_pages() definition requirements when CONFIG_SWAP=n. Unfortunately the code in question contains: /* only sparc can not include linux/pagemap.h in this file * so leave page_cache_release and release_pages undeclared... */ #define free_page_and_swap_cache(page) \ page_cache_release(page) #define free_pages_and_swap_cache(pages, nr) \ release_pages((pages), (nr), 0); so it looks like we're stuck with doing it in asm/tlb.h instead, as others already do (ARM, CRIS, etc.). Grumble. Signed-off-by: Paul Mundt <[EMAIL PROTECTED]> --- include/asm-sh/tlb.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/asm-sh/tlb.h b/include/asm-sh/tlb.h index 56ad1fb..88ff1ae 100644 --- a/include/asm-sh/tlb.h +++ b/include/asm-sh/tlb.h @@ -20,6 +20,7 @@ */ #define tlb_flush(tlb) flush_tlb_mm((tlb)->mm) +#include <linux/pagemap.h> #include <asm-generic/tlb.h> #endif /* __ASSEMBLY__ */ - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html