Skip to contentSkip to conversation

tlb: fix build error with CONFIG_SWAP=n

PATCH In review Dmitry Eremin-Solenikov 2 participants 2 messages Mar 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tlb: fix build error with CONFIG_SWAP=n

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?

---
 arch/arm/include/asm/tlb.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/include/asm/tlb.h +1 -0
index 82dfe5d..36e75e5 100644
@@ -29,6 +29,7 @@
 
 #else /* !CONFIG_MMU */
 
+#include <linux/pagemap.h>
 #include <linux/swap.h>
 #include <asm/pgalloc.h>
 #include <asm/tlbflush.h>
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 7 lines · Dmitry Eremin-Solenikov

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?

Already caught:

http://ftp.arm.linux.org.uk/git/?p=linux-2.6-arm.git;a=shortlog;h=refs/heads/fixes

11 days Uwe Kleine... ARM: 6757/1: fix tlb.h induced linux/swap.h
ago build failure

I've had about four of these patches over the last two weeks or so, it would be a good idea to check the git tree before sending another version of this.