[PATCH v2 5/7] x86/irq: Constify a struct irq_chip *
Christophe JAILLET <[email protected]>
| Newsgroups | org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <c31599ead770495f3f4674f9a83c3459e9dcb133.1780343698.git.christophe.jaillet@wanadoo.fr> |
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 <[email protected]> --- 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