* [PATCH] MIPS: irq: Add missing prototypes for init_IRQ()
@ 2020-09-23 3:26 Pujin Shi
2020-09-27 9:08 ` Thomas Bogendoerfer
0 siblings, 1 reply; 2+ messages in thread
From: Pujin Shi @ 2020-09-23 3:26 UTC (permalink / raw)
To: Thomas Bogendoerfer; +Cc: linux-mips, linux-kernel, shipujin.t
init_IRQ() have no prototype, add one in irq.h
Fix the following warnings (treated as error in W=1):
arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes]
Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
---
arch/mips/include/asm/irq.h | 1 +
arch/mips/kernel/irq.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h
index c5d351786416..992f8040d3d9 100644
--- a/arch/mips/include/asm/irq.h
+++ b/arch/mips/include/asm/irq.h
@@ -21,6 +21,7 @@
#define IRQ_STACK_START (IRQ_STACK_SIZE - 16)
extern void *irq_stack[NR_CPUS];
+void init_IRQ(void);
/*
* The highest address on the IRQ stack contains a dummy frame put down in
diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c
index 85b6c60f285d..07d2c86e7ff5 100644
--- a/arch/mips/kernel/irq.c
+++ b/arch/mips/kernel/irq.c
@@ -21,6 +21,7 @@
#include <linux/kallsyms.h>
#include <linux/kgdb.h>
#include <linux/ftrace.h>
+#include <asm/irq.h>
#include <linux/atomic.h>
#include <linux/uaccess.h>
--
2.18.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] MIPS: irq: Add missing prototypes for init_IRQ()
2020-09-23 3:26 [PATCH] MIPS: irq: Add missing prototypes for init_IRQ() Pujin Shi
@ 2020-09-27 9:08 ` Thomas Bogendoerfer
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Bogendoerfer @ 2020-09-27 9:08 UTC (permalink / raw)
To: Pujin Shi; +Cc: linux-mips, linux-kernel
On Wed, Sep 23, 2020 at 11:26:50AM +0800, Pujin Shi wrote:
> init_IRQ() have no prototype, add one in irq.h
>
> Fix the following warnings (treated as error in W=1):
> arch/mips/kernel/irq.c:52:13: error: no previous prototype for 'init_IRQ' [-Werror=missing-prototypes]
>
> Signed-off-by: Pujin Shi <shipujin.t@gmail.com>
> ---
> arch/mips/include/asm/irq.h | 1 +
> arch/mips/kernel/irq.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/arch/mips/include/asm/irq.h b/arch/mips/include/asm/irq.h
> index c5d351786416..992f8040d3d9 100644
> --- a/arch/mips/include/asm/irq.h
> +++ b/arch/mips/include/asm/irq.h
> @@ -21,6 +21,7 @@
> #define IRQ_STACK_START (IRQ_STACK_SIZE - 16)
>
> extern void *irq_stack[NR_CPUS];
> +void init_IRQ(void);
putting it here hasn't any value. If you want to fix this properly,
move the extern void init_IRQ(void) in init/main.c to a common header
file and check that every arch to uses it.
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-27 9:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-23 3:26 [PATCH] MIPS: irq: Add missing prototypes for init_IRQ() Pujin Shi
2020-09-27 9:08 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox