[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210813025025.26580-1-zhaoxiao@uniontech.com>
Date: Fri, 13 Aug 2021 10:50:25 +0800
From: zhaoxiao <zhaoxiao@...ontech.com>
To: chenhc@...ote.com
Cc: ralf@...ux-mips.org, paul.burton@...s.com, jhogan@...nel.org,
linux-mips@...ux-mips.org, linux-kernel@...r.kernel.org,
zhaoxiao <zhaoxiao@...ontech.com>
Subject: [PATCH] MIPS: Loongson64: Make some functions static in irq.c
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@...ontech.com>
---
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
Powered by blists - more mailing lists