From: Stefano Stabellini Date: Tue, 10 Jun 2014 14:07:13 +0000 (+0100) Subject: xen/arm: nr_lrs should be uint8_t X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4848 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0623c052fe65fded9489b52f09b58c718242b109;p=xen.git xen/arm: nr_lrs should be uint8_t A later patch is going to use uint8_t to keep track of LRs. Both GICv3 and GICv2 don't need any more than an uint8_t to keep track of the number of LRs. Signed-off-by: Stefano Stabellini Acked-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 302c031d8e..eeaf685159 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -54,7 +54,7 @@ static struct { static DEFINE_PER_CPU(uint64_t, lr_mask); -static unsigned nr_lrs; +static uint8_t nr_lrs; #define lr_all_full() (this_cpu(lr_mask) == ((1 << nr_lrs) - 1)) /* The GIC mapping of CPU interfaces does not necessarily match the