From 30fcffed8149df18592b3e006b829232b7b3844f Mon Sep 17 00:00:00 2001 From: Nick Piggin Date: Wed, 14 Feb 2007 12:35:02 +0100 Subject: [PATCH] [PATCH] mincore: CONFIG_SWAP=n fix Fix mincore-anon patch to compile with CONFIG_SWAP=n Signed-off-by: Nick Piggin Signed-off-by: Linus Torvalds --- mm/mincore.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mm/mincore.c b/mm/mincore.c index 95c5f49f0a..9780097e38 100644 --- a/mm/mincore.c +++ b/mm/mincore.c @@ -116,8 +116,13 @@ static long do_mincore(unsigned long addr, unsigned char *vec, unsigned long pag /* migration entries are always uptodate */ present = 1; } else { +#ifdef CONFIG_SWAP pgoff = entry.val; present = mincore_page(&swapper_space, pgoff); +#else + WARN_ON(1); + present = 1; +#endif } } } -- 2.39.5