From: Stefano Stabellini Date: Thu, 22 Dec 2016 02:15:10 +0000 (-0800) Subject: xen/arm: fix GIC_INVALID_LR X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~3065 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e03d4e867456cf4e288aee79b04da05d3626c242;p=xen.git xen/arm: fix GIC_INVALID_LR GIC_INVALID_LR should be 0xff, but actually, defined as ~(uint8_t)0, is 0xffffffff. Fix the problem by placing the ~ operator before the cast. Signed-off-by: Stefano Stabellini Reviewed-by: Julien Grall --- diff --git a/xen/include/asm-arm/vgic.h b/xen/include/asm-arm/vgic.h index 672f649a4f..467333c5bd 100644 --- a/xen/include/asm-arm/vgic.h +++ b/xen/include/asm-arm/vgic.h @@ -69,7 +69,7 @@ struct pending_irq unsigned long status; struct irq_desc *desc; /* only set it the irq corresponds to a physical irq */ unsigned int irq; -#define GIC_INVALID_LR ~(uint8_t)0 +#define GIC_INVALID_LR (uint8_t)~0 uint8_t lr; uint8_t priority; /* inflight is used to append instances of pending_irq to