[tip: irq/urgent] irqchip/mmp: Make icu_irq_chip variable static const

From: tip-bot2 for Krzysztof Kozlowski

Date: Tue Feb 17 2026 - 05:09:25 EST


The following commit has been merged into the irq/urgent branch of tip:

Commit-ID: f0617176be5e497b67b3c87bac35b26ebccac499
Gitweb: https://git.kernel.org/tip/f0617176be5e497b67b3c87bac35b26ebccac499
Author: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
AuthorDate: Mon, 16 Feb 2026 12:04:50 +01:00
Committer: Thomas Gleixner <tglx@xxxxxxxxxx>
CommitterDate: Tue, 17 Feb 2026 11:03:56 +01:00

irqchip/mmp: Make icu_irq_chip variable static const

File-scope 'icu_irq_chip' is not used outside of this unit and is not
modified anywhere, so make it static const to silence sparse warning:

irq-mmp.c:139:17: warning: symbol 'icu_irq_chip' was not declared. Should it be static?

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
Link: https://patch.msgid.link/20260216110449.160277-2-krzysztof.kozlowski@xxxxxxxxxxxxxxxx
---
drivers/irqchip/irq-mmp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c
index 09e6404..8e210cb 100644
--- a/drivers/irqchip/irq-mmp.c
+++ b/drivers/irqchip/irq-mmp.c
@@ -136,7 +136,7 @@ static void icu_unmask_irq(struct irq_data *d)
}
}

-struct irq_chip icu_irq_chip = {
+static const struct irq_chip icu_irq_chip = {
.name = "icu_irq",
.irq_mask = icu_mask_irq,
.irq_mask_ack = icu_mask_ack_irq,