xen/arm: nr_lrs should be static
PATCH 1/1 xen/arm: nr_lrs should be static
nr_lrs is only used in gic.c
Signed-off-by Julien Grall <[email protected]>
--- xen/arch/arm/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/gic.c +1 -1
@@ -53,7 +53,7 @@ static irq_desc_t irq_desc[NR_IRQS]; static DEFINE_PER_CPU(irq_desc_t[NR_LOCAL_IRQS], local_irq_desc); static DEFINE_PER_CPU(uint64_t, lr_mask); -unsigned nr_lrs; +static unsigned nr_lrs;irq_desc_t *__irq_to_desc (int irq) {
Signature · 1 line
1.7.10.4
Quoted 3 lines · Julien Grall
nr_lrsis only used ingic.cSigned-off-by Julien Grall <[email protected]>
Quoted 19 lines
xen/arch/arm/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)xen/arch/arm/gic.c +1
-1@@ -53,7 +53,7 @@ static irq_desc_t irq_desc[NR_IRQS]; static DEFINE_PER_CPU(irq_desc_t[NR_LOCAL_IRQS], local_irq_desc); static DEFINE_PER_CPU(uint64_t, lr_mask); -unsigned nr_lrs; +static unsigned nr_lrs;irq_desc_t *__irq_to_desc (int irq) {Signature · 1 line
1.7.10.4
Ian Campbell
AppliedQuoted 6 lines · Stefano Stabellini
Quoted 3 lines · Julien Grall
nr_lrsis only used ingic.cSigned-off-by Julien Grall <[email protected]>
Applied, thanks.
Although we have a global gic state struct, is there some reason this isn't in there?