From: Olaf Hering sparc can not include linux/pagemap.h because of the following circular dependency: asm-sparc/pgtable include linux/swap.h linux/swap.h include now linux/pagemap.h linux/pagemap.h include linux/mm.h linux/mm.h include asm/pgtable.h It needs to have the swp_entry_t type fully visible in pgtable.h, we can't work around this using macros. Signed-off-by: Olaf Hering Cc: William Lee Irwin III Signed-off-by: Andrew Morton --- include/linux/swap.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) diff -puN include/linux/swap.h~remove-linux-pagemaph-from-linux-swaph include/linux/swap.h --- devel/include/linux/swap.h~remove-linux-pagemaph-from-linux-swaph 2005-08-06 15:34:02.000000000 -0700 +++ devel-akpm/include/linux/swap.h 2005-08-06 15:34:02.000000000 -0700 @@ -7,7 +7,6 @@ #include #include #include -#include #include #include @@ -255,6 +254,8 @@ static inline void put_swap_token(struct #define si_swapinfo(val) \ do { (val)->freeswap = (val)->totalswap = 0; } while (0) +/* 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) \ _