[PATCH v2 5/7] x86/irq: Constify a struct irq_chip *
From: Christophe JAILLET
Date: Mon Jun 01 2026 - 16:21:09 EST
irq_data_get_irq_chip() will also return a const struct irq_chip * and some
const qualifier will also be needed in some places.
So, start to add some of these const qualifiers at the places that are
not spotted by the coccinelle script that does most of the work.
Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
---
Compile tested only
If preferred, this could be done differently. If the scope of chip was
reduced, the const would be added by the cocci script in the next patch.
Changes in v2
- New patch
v1: none
---
arch/x86/kernel/irq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/irq.c b/arch/x86/kernel/irq.c
index ec77be217eaf..7afbdf0ee13b 100644
--- a/arch/x86/kernel/irq.c
+++ b/arch/x86/kernel/irq.c
@@ -522,7 +522,7 @@ void fixup_irqs(void)
unsigned int vector;
struct irq_desc *desc;
struct irq_data *data;
- struct irq_chip *chip;
+ const struct irq_chip *chip;
irq_migrate_all_off_this_cpu();
--
2.54.0