Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=30fcffed8149df18592b3e006b829232b7b3844f Commit: 30fcffed8149df18592b3e006b829232b7b3844f Parent: 724339d76d9407cd1a8ad32a9c1fdf64840cc51b Author: Nick Piggin <[EMAIL PROTECTED]> AuthorDate: Wed Feb 14 12:35:02 2007 +0100 Committer: Linus Torvalds <[EMAIL PROTECTED]> CommitDate: Thu Feb 15 09:57:03 2007 -0800
[PATCH] mincore: CONFIG_SWAP=n fix Fix mincore-anon patch to compile with CONFIG_SWAP=n Signed-off-by: Nick Piggin <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]> --- mm/mincore.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/mm/mincore.c b/mm/mincore.c index 95c5f49..9780097 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 } } } - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html