diff options
author | Andrew Morton <[email protected]> | 2011-01-25 15:07:11 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-01-26 10:49:58 +1000 |
commit | f95ba941d1bee594d536cdcbf879a0865381b903 (patch) | |
tree | 985a30f836333e3e4eddea8e8d4d041e1f267b11 /tools/perf/util/trace-event-scripting.c | |
parent | cacf061c5e42a040200463afccd9178ace680322 (diff) |
mm/pgtable-generic.c: fix CONFIG_SWAP=n build
mips (and sparc32):
In file included from 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'
free_pages_and_swap_cache() and free_page_and_swap_cache() are macros
which call release_pages() and page_cache_release(). The obvious fix is
to include pagemap.h in swap.h, where those macros are defined. But that
breaks sparc for weird reasons.
So fix it within mm/pgtable-generic.c instead.
Reported-by: Yoichi Yuasa <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Cc: Sergei Shtylyov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions