LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] MIPS: Loongson64: Make some functions static in irq.c
@ 2021-08-13  2:50 zhaoxiao
  0 siblings, 0 replies; only message in thread
From: zhaoxiao @ 2021-08-13  2:50 UTC (permalink / raw)
  To: chenhc; +Cc: ralf, paul.burton, jhogan, linux-mips, linux-kernel, zhaoxiao

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@uniontech.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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-13  2:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-13  2:50 [PATCH] MIPS: Loongson64: Make some functions static in irq.c zhaoxiao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).