arm: cast int<->pointer via uintptr_t
PATCH 1/1 arm: cast int<->pointer via uintptr_t
Fixes build on arm64:
gic.c: In function ‘gic_irq_eoi’:
gic.c:726:16: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] gic.c: In function ‘maintenance_interrupt’:
gic.c:776:29: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] gic.c:778:64: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
cc1: all warnings being treated as errors
make[3]: *** [gic.o] Error 1
---
I forgot to CC the list when I sent this to Stefano & Keir. Given that they have acked already I intend to apply immediately.
--- xen/arch/arm/gic.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
xen/arch/arm/gic.c +4 -3
@@ -723,7 +723,7 @@ int gicv_setup(struct domain *d)static void gic_irq_eoi (void *info) { -int virq = (int ) info; +int virq = (uintptr_t ) info;GICC [GICC_DIR ] = virq; }
@@ -773,9 +773,10 @@ static void maintenance_interrupt(int irq, void *dev_id, struct cpu_user_regs *r/* this is not racy because we can't receive another irq of the * same type until we EOI it. */ if ( cpu ==smp_processor_id () ) -gic_irq_eoi ((void *)virq); +gic_irq_eoi ((void *)(uintptr_t )virq);else -on_selected_cpus (cpumask_of (cpu), gic_irq_eoi, (void *)virq,0 ); +on_selected_cpus (cpumask_of (cpu), + gic_irq_eoi, (void *)(uintptr_t )virq,0 ); } i++;
Signature · 7 lines
1.7.2.5 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Quoted 10 lines · Ian Campbell
Fixes build on arm64:
gic.c: In function ‘gic_irq_eoi’:
gic.c:726:16: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]gic.c: In function ‘maintenance_interrupt’:
gic.c:776:29: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] gic.c:778:64: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast]
cc1: all warnings being treated as errors
make[3]: *** [gic.o] Error 1
Quoted 6 lines
Signed-off-by Ian Campbell <[email protected]>Acked-by Keir Fraser <[email protected]>---
I forgot to CC the list when I sent this to Stefano & Keir. Given that they have acked already I intend to apply immediately.
Done.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel