Commit c139a595 authored by Paul Mundt's avatar Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent fc6191dd
...@@ -106,9 +106,9 @@ static inline void flush_cache_4096(unsigned long start, ...@@ -106,9 +106,9 @@ static inline void flush_cache_4096(unsigned long start,
*/ */
static void sh4_flush_dcache_page(struct page *page) static void sh4_flush_dcache_page(struct page *page)
{ {
#ifndef CONFIG_SMP
struct address_space *mapping = page_mapping(page); struct address_space *mapping = page_mapping(page);
#ifndef CONFIG_SMP
if (mapping && !mapping_mapped(mapping)) if (mapping && !mapping_mapped(mapping))
set_bit(PG_dcache_dirty, &page->flags); set_bit(PG_dcache_dirty, &page->flags);
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment