From 7d36a4a7c558a5750fe9b080b636d0d340bf142a Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 7 Feb 2013 12:26:16 +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