summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-11-26 15:11:17 +0100
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2012-11-26 15:11:17 +0100
commit3d0df2fd2b9deec41cec0ba1f0d7dbb2be618a31 (patch)
tree1c598407328ae2b5a75aaea90fd64fc67ec20d49
parentab906de0601813dffce00213c6e7a1c7b5fad5fd (diff)
arm: mm: fix pageattr build if not v7
As pageattr.c gets built unconditionally it fails linking on none v7 arms (e.g. PXA) with the following error message: arch/arm/mm/pageattr.c:38: undefined reference to `v7_flush_kern_cache_all'
-rw-r--r--arch/arm/mm/pageattr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c
index c11064517f56..f5519a93147d 100644
--- a/arch/arm/mm/pageattr.c
+++ b/arch/arm/mm/pageattr.c
@@ -35,7 +35,9 @@ extern void __flush_dcache_page(struct address_space *, struct page *);
static void inner_flush_cache_all(void)
{
+#ifdef CONFIG_CPU_CACHE_V7
on_each_cpu(v7_flush_kern_cache_all, NULL, 1);
+#endif
}
#if defined(CONFIG_CPA)