From: Andrew Morton Date: Wed, 20 Feb 2013 02:14:05 +0000 (+1100) Subject: mm-make-madvisemadv_willneed-support-swap-file-prefetch-fix X-Git-Tag: next-20130220~1^2~573 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eee86fcb625d797ac00d5e905943f253e1fc1793;p=karo-tx-linux.git 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 --- 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.