linux-mips
[Top] [All Lists]

[PATCH] fix build error when CONFIG_SWAP is not set

To: Andrew Morton <akpm@linux-foundation.org>
Subject: [PATCH] fix build error when CONFIG_SWAP is not set
From: Yoichi Yuasa <yuasa@linux-mips.org>
Date: Mon, 24 Jan 2011 21:08:13 +0900
Cc: yuasa@linux-mips.org, linux-mips <linux-mips@linux-mips.org>, linux-mm@kvack.org, linux-kernel@vger.kernel.org
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:date:from:to:cc:subject:message-id :x-mailer:mime-version:content-type:content-transfer-encoding; bh=MZFlsxy02Bss/LtBAeBwAxpd6h8bnVbXzrSGPi2ctnM=; b=PIaFPTso0wF3/BmUgG98HCZAnGBOAIIxiIKmlZiFx9pW4iMw6F5pj8oBo4sA/soU6h 801CXmH4bE93msrOqJbw0RRahQk0bNpJV5m+2/Nm+E/sy6J3fdSemsYcEqqAKHpduCL8 jgD2QMQP/EbR1C5+XR4PyahBecMYxKQjeK9Pk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; b=cAT2nckWjjg0HmXcp4Gp4RYegQiyzz9XDvIaJCQO+GrEfQ7CsMqaLBoQtGngd21daJ SvoRWfOjicUJpfmeadAdWWalNfGN0VRCUC3QCqm4xJZx+FdL7uPonSdCbezaZ9M9Zl9r ReeNPmlLxrDrWq8hcwiuMpz7HdRmX6GlNJZm4=
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
In file included from
linux-2.6/arch/mips/include/asm/tlb.h:21,
                 from mm/pgtable-generic.c:9:
include/asm-generic/tlb.h: In function 'tlb_flush_mmu':
include/asm-generic/tlb.h:76: error: implicit declaration of function
'release_pages'
include/asm-generic/tlb.h: In function 'tlb_remove_page':
include/asm-generic/tlb.h:105: error: implicit declaration of function
'page_cache_release'
make[1]: *** [mm/pgtable-generic.o] Error 1

Signed-off-by: Yoichi Yuasa <yuasa@linux-mips.org>
---
 include/linux/swap.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/swap.h b/include/linux/swap.h
index 4d55932..92c1be6 100644
--- a/include/linux/swap.h
+++ b/include/linux/swap.h
@@ -8,6 +8,7 @@
 #include <linux/memcontrol.h>
 #include <linux/sched.h>
 #include <linux/node.h>
+#include <linux/pagemap.h>
 
 #include <asm/atomic.h>
 #include <asm/page.h>
-- 
1.7.3.5


<Prev in Thread] Current Thread [Next in Thread>