From c139a595878b0e8156476668e3d5c27b6aca7624 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Thu, 20 Aug 2009 15:24:41 +0900 Subject: 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 --- arch/sh/mm/cache-sh4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/sh/mm') diff --git a/arch/sh/mm/cache-sh4.c b/arch/sh/mm/cache-sh4.c index 05cb04bc394..6c2db140108 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 -- cgit v1.2.3