From c8c2df9055074197ba12902c6d7e840667fb56d6 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Tue, 15 Sep 2009 09:47:35 +0900 Subject: [PATCH] sh: Fix up sh7705 flush_dcache_page() build. Type mismatch caused the page deref to blow up, fix it up as per the sh4 change. Signed-off-by: Paul Mundt --- arch/sh/mm/cache-sh7705.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/sh/mm/cache-sh7705.c b/arch/sh/mm/cache-sh7705.c index 6293f57fa888..2cadee2037ac 100644 --- a/arch/sh/mm/cache-sh7705.c +++ b/arch/sh/mm/cache-sh7705.c @@ -133,8 +133,9 @@ static void __flush_dcache_page(unsigned long phys) * Write back & invalidate the D-cache of the page. * (To avoid "alias" issues) */ -static void sh7705_flush_dcache_page(void *page) +static void sh7705_flush_dcache_page(void *arg) { + struct page *page = arg; struct address_space *mapping = page_mapping(page); if (mapping && !mapping_mapped(mapping)) -- 2.11.0