diff options
author | Fabio Estevam <festevam@gmail.com> | 2013-08-16 07:55:56 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-08-19 19:11:50 -0400 |
commit | 7cb3be0a27805c625ff7cce20c53c926d9483243 (patch) | |
tree | 02c3a65d6934c6e90353d3ab05ee7056f114179f /arch/arm/kernel | |
parent | d9f966357b14e356dbd83b8f4a197a287ab4ff83 (diff) |
ARM: 7819/1: fiq: Cast the first argument of flush_icache_range()
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 <fabio.estevam@freescale.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/fiq.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
89 | 89 | ||
90 | memcpy(base + offset, start, length); | 90 | memcpy(base + offset, start, length); |
91 | if (!cache_is_vipt_nonaliasing()) | 91 | if (!cache_is_vipt_nonaliasing()) |
92 | flush_icache_range(base + offset, offset + length); | 92 | flush_icache_range((unsigned long)base + offset, offset + |
93 | length); | ||
93 | flush_icache_range(0xffff0000 + offset, 0xffff0000 + offset + length); | 94 | flush_icache_range(0xffff0000 + offset, 0xffff0000 + offset + length); |
94 | } | 95 | } |
95 | 96 | ||