Skip to contentSkip to conversation

xen/arm: nr_lrs should be static

PATCH Applied Julien Grall 3 participants 3 messages Apr 26, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/arm: nr_lrs should be static

nr_lrs is only used in gic.c

---
 xen/arch/arm/gic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/gic.c +1 -1
index 35376ef..bc8faf2 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Julien Grall

nr_lrs is only used in gic.c

Quoted 19 lines
 xen/arch/arm/gic.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/gic.c +1 -1
index 35376ef..bc8faf2 100644
@@ -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