imx.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqchip/mxs: Declare icoll_handle_irq() as static
@ 2024-04-12 21:53 Stefan Wahren
  0 siblings, 0 replies; only message in thread
From: Stefan Wahren @ 2024-04-12 21:53 UTC (permalink / raw
  To: Thomas Gleixner, Shawn Guo, Sascha Hauer, Fabio Estevam
  Cc: kernel, imx, linux-arm-kernel, Stefan Wahren, Linus Walleij

After commit 5bb578a0c1b8 ("ARM: 9298/1: Drop custom mdesc->handle_irq()")
the function icoll_handle_irq() is only defined within irq-mxs.c .
So declare it as static to fix the warning about a missing prototype when
building with W=1.

Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
---
 drivers/irqchip/irq-mxs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-mxs.c b/drivers/irqchip/irq-mxs.c
index be9680645545..19fc0bac76bf 100644
--- a/drivers/irqchip/irq-mxs.c
+++ b/drivers/irqchip/irq-mxs.c
@@ -130,7 +130,7 @@ static struct irq_chip asm9260_icoll_chip = {
 		 IRQCHIP_SKIP_SET_WAKE,
 };

-asmlinkage void __exception_irq_entry icoll_handle_irq(struct pt_regs *regs)
+static asmlinkage void __exception_irq_entry icoll_handle_irq(struct pt_regs *regs)
 {
 	u32 irqnr;

--
2.34.1


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

only message in thread, other threads:[~2024-04-12 21:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-12 21:53 [PATCH] irqchip/mxs: Declare icoll_handle_irq() as static Stefan Wahren

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 read-only IMAP folder(s) and NNTP newsgroup(s).