Explorar o código

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>
Paul Mundt %!s(int64=16) %!d(string=hai) anos
pai
achega
c139a59587
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      arch/sh/mm/cache-sh4.c

+ 1 - 1
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