[PATCH] [ARM] tlb: fix build error with CONFIG_SWAP=n

From: Dmitry Eremin-Solenikov
Date: Sun Mar 06 2011 - 10:46:38 EST


Fix this build error with CONFIG_SWAP=n:

In file included from arch/arm/mm/init.c:28:
arch/arm/include/asm/tlb.h: In function âtlb_flush_mmuâ:
arch/arm/include/asm/tlb.h:104: error: implicit declaration of function ârelease_pagesâ
arch/arm/include/asm/tlb.h: In function âtlb_remove_pageâ:
arch/arm/include/asm/tlb.h:168: error: implicit declaration of function âpage_cache_releaseâ

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@xxxxxxxxx>
---
arch/arm/include/asm/tlb.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/include/asm/tlb.h b/arch/arm/include/asm/tlb.h
index 82dfe5d..36e75e5 100644
--- a/arch/arm/include/asm/tlb.h
+++ b/arch/arm/include/asm/tlb.h
@@ -29,6 +29,7 @@

#else /* !CONFIG_MMU */

+#include <linux/pagemap.h>
#include <linux/swap.h>
#include <asm/pgalloc.h>
#include <asm/tlbflush.h>
--
1.7.2.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/