From eee86fcb625d797ac00d5e905943f253e1fc1793 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 20 Feb 2013 13:14:05 +1100 Subject: [PATCH] mm-make-madvisemadv_willneed-support-swap-file-prefetch-fix fix CONFIG_SWAP=n build Cc: Shaohua Li Cc: Hugh Dickins Cc: Rik van Riel Signed-off-by: Andrew Morton --- mm/madvise.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mm/madvise.c b/mm/madvise.c index 51d57c12dd78..e5602536508f 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -134,6 +134,7 @@ out: return error; } +#ifdef CONFIG_SWAP static int swapin_walk_pmd_entry(pmd_t *pmd, unsigned long start, unsigned long end, struct mm_walk *walk) { @@ -209,6 +210,7 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma, lru_add_drain(); /* Push any new pages onto the LRU now */ } +#endif /* CONFIG_SWAP */ /* * Schedule all required I/O operations. Do not wait for completion. -- 2.39.5