Skip to content

Commit

Permalink
sh: Fix up cache-sh4 build on SMP.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Aug 20, 2009
1 parent fc6191d commit c139a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/mm/cache-sh4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c139a59

Please sign in to comment.