tlb: fix build error with CONFIG_SWAP=n
Subsystems (2)
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
@@ -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
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.