summaryrefslogtreecommitdiffstats
path: root/arch/sh/mm/cache-sh4.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-20 08:24:41 +0200
committerPaul Mundt <lethal@linux-sh.org>2009-08-20 08:24:41 +0200
commitc139a595878b0e8156476668e3d5c27b6aca7624 (patch)
treed072bae88bc1637f1c23504ee55e4aad3db67644 /arch/sh/mm/cache-sh4.c
parentsh: Fix up clockevents broadcasting. (diff)
downloadlinux-c139a595878b0e8156476668e3d5c27b6aca7624.tar.xz
linux-c139a595878b0e8156476668e3d5c27b6aca7624.zip
sh: Fix up cache-sh4 build on SMP.
mapping is unused on the SMP build, trigger a build error. Move it under the ifdef. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/cache-sh4.c')
-rw-r--r--arch/sh/mm/cache-sh4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c
index 05cb04bc3940..6c2db1401080 100644
--- a/arch/sh/mm/cache-sh4.c
+++ b/arch/sh/mm/cache-sh4.c
@@ -106,9 +106,9 @@ static inline void flush_cache_4096(unsigned long start,
*/
static void sh4_flush_dcache_page(struct page *page)
{
+#ifndef CONFIG_SMP
struct address_space *mapping = page_mapping(page);
-#ifndef CONFIG_SMP
if (mapping && !mapping_mapped(mapping))
set_bit(PG_dcache_dirty, &page->flags);
else