]> git.baikalelectronics.ru Git - kernel.git/commit
sh: asm/tlb.h needs linux/pagemap.h for CONFIG_SWAP=n.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 13 Feb 2008 05:09:03 +0000 (14:09 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 14 Feb 2008 05:22:11 +0000 (14:22 +0900)
commit1d01219db383fa081a384ea96313e55c418b8916
treebe8b351baee7947f82dfb66d93aa4c6b2614719a
parent022a729e291421f4c6971a4d19c825c764223526
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 <lethal@linux-sh.org>
include/asm-sh/tlb.h