From: Fabio Estevam Date: Fri, 16 Aug 2013 11:55:56 +0000 (+0100) Subject: ARM: 7819/1: fiq: Cast the first argument of flush_icache_range() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=22ab6a2be78db078b11cc478bfc99cdc8e0642cb;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ARM: 7819/1: fiq: Cast the first argument of flush_icache_range() commit 7cb3be0a27805c625ff7cce20c53c926d9483243 upstream. Commit 2ba85e7af4 (ARM: Fix FIQ code on VIVT CPUs) causes the following build warning: arch/arm/kernel/fiq.c:92:3: warning: passing argument 1 of 'cpu_cache.coherent_kern_range' makes integer from pointer without a cast [enabled by default] Cast it as '(unsigned long)base' to avoid the warning. Signed-off-by: Fabio Estevam Signed-off-by: Russell King Cc: Martin Kaiser Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/arm/kernel/fiq.c b/arch/arm/kernel/fiq.c index fc7920288a3d..918875d96d5d 100644 --- a/arch/arm/kernel/fiq.c +++ b/arch/arm/kernel/fiq.c @@ -89,7 +89,8 @@ void set_fiq_handler(void *start, unsigned int length) memcpy(base + offset, start, length); if (!cache_is_vipt_nonaliasing()) - flush_icache_range(base + offset, offset + length); + flush_icache_range((unsigned long)base + offset, offset + + length); flush_icache_range(0xffff0000 + offset, 0xffff0000 + offset + length); }