lkml.org 
[lkml]   [2021]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] MIPS: Loongson64: Make some functions static in irq.c
Date
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


\
 
 \ /
  Last update: 2021-08-13 04:51    [W:0.022 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site