[PATCH] MIPS: Loongson64: Make some functions static in irq.c

From: zhaoxiao
Date: Thu Aug 12 2021 - 22:51:04 EST


Make some functions static to fix the following sparse warnings:
arch/mips/loongson64/loongson-3/irq.c:15:14: warning: symbol 'irq_cpu' was not declared. Should it be static?
arch/mips/loongson64/loongson-3/irq.c:16:14: warning: symbol 'ht_irq' was not declared. Should it be static?
arch/mips/loongson64/loongson-3/irq.c:17:14: warning: symbol 'local_irq' was not declared. Should it be static?
arch/mips/loongson64/loongson-3/irq.c:19:5: warning: symbol 'plat_set_irq_affinity' was not declared. Should it be static?
arch/mips/loongson64/loongson-3/irq.c:112:6: warning: symbol 'irq_router_init' was not declared. Should it be static?

Signed-off-by: zhaoxiao <zhaoxiao@xxxxxxxxxxxxx>
---
arch/mips/loongson64/loongson-3/irq.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/arch/mips/loongson64/loongson-3/irq.c b/arch/mips/loongson64/loongson-3/irq.c
index 5605061f5f98..f68098c6d0f6 100644
--- a/arch/mips/loongson64/loongson-3/irq.c
+++ b/arch/mips/loongson64/loongson-3/irq.c
@@ -12,11 +12,11 @@

extern void loongson3_send_irq_by_ipi(int cpu, int irqs);

-unsigned int irq_cpu[16] = {[0 ... 15] = -1};
-unsigned int ht_irq[] = {0, 1, 3, 4, 5, 6, 7, 8, 12, 14, 15};
-unsigned int local_irq = 1<<0 | 1<<1 | 1<<2 | 1<<7 | 1<<8 | 1<<12;
+static unsigned int irq_cpu[16] = {[0 ... 15] = -1};
+static unsigned int ht_irq[] = {0, 1, 3, 4, 5, 6, 7, 8, 12, 14, 15};
+static unsigned int local_irq = 1<<0 | 1<<1 | 1<<2 | 1<<7 | 1<<8 | 1<<12;

-int plat_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity,
+static int plat_set_irq_affinity(struct irq_data *d, const struct cpumask *affinity,
bool force)
{
unsigned int cpu;
@@ -109,7 +109,7 @@ static struct irq_chip loongson_irq_chip = {
.irq_eoi = unmask_loongson_irq,
};

-void irq_router_init(void)
+static void irq_router_init(void)
{
int i;

--
2.20.1