[PATCH] ARM: fiq: Cast the first argument of flush_icache_range()

Olof Johansson olof at lixom.net
Sat Aug 17 00:24:38 EDT 2013


On Thu, Aug 15, 2013 at 5:35 PM, Fabio Estevam <festevam at gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
>
> Commit 2ba85e7af4 (ARM: Fix FIQ code on VIVT CPUs) causes the following build
> warning:
>
> arch/arm/kernel/fiq.c: In function 'set_fiq_handler':
> 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]
> arch/arm/kernel/fiq.c:92:3: note: expected 'long unsigned int' but argument is of type 'void *'
>
> Cast it as '(unsigned long)base' to avoid the warning.
>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>

Acked-by: Olof Johansson <olof at lixom.net>

This warning just showed up on mainline with the last arm fixes.
Please send to the patch tracker.


-Olof



More information about the linux-arm-kernel mailing list