[PATCH 2/2] bsps/gicv3: Resolve build warnings on 64bit
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Dec 11 05:37:11 UTC 2020
On 10/12/2020 21:42, Kinsey Moore wrote:
> ---
> bsps/shared/dev/irq/arm-gicv3.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/bsps/shared/dev/irq/arm-gicv3.c b/bsps/shared/dev/irq/arm-gicv3.c
> index 520a728170..db0ad5b952 100644
> --- a/bsps/shared/dev/irq/arm-gicv3.c
> +++ b/bsps/shared/dev/irq/arm-gicv3.c
> @@ -134,13 +134,13 @@
> static volatile gic_redist *gicv3_get_redist(uint32_t cpu_index)
> {
> return (volatile gic_redist *)
> - (BSP_ARM_GIC_REDIST_BASE + cpu_index * 0x20000);
> + ((char*)BSP_ARM_GIC_REDIST_BASE + cpu_index * 0x20000);
Ok, now I know why there was this (char *) cast. I am more in favour to
cast this integer constant to (uintptr_t) to avoid the warning.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list