Skip to content

Commit f061717

Browse files
krzkThomas Gleixner
authored andcommitted
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@oss.qualcomm.com> Signed-off-by: Thomas Gleixner <tglx@kernel.org> Link: https://patch.msgid.link/20260216110449.160277-2-krzysztof.kozlowski@oss.qualcomm.com
1 parent ce9e40a commit f061717

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-mmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ static void icu_unmask_irq(struct irq_data *d)
136136
}
137137
}
138138

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

0 commit comments

Comments
 (0)