chained_irq_enter() and chained_irq_exit() don't modify their 'chip' parameter. So change the prototype of these functions to accept const struct irq_chip pointer. Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> --- Compile tested only --- include/linux/irqchip/chained_irq.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/irqchip/chained_irq.h b/include/linux/irqchip/chained_irq.h index dd8b3c476666..f248d63acfca 100644 --- a/include/linux/irqchip/chained_irq.h +++ b/include/linux/irqchip/chained_irq.h @@ -13,7 +13,7 @@ * Entry/exit functions for chained handlers where the primary IRQ chip * may implement either fasteoi or level-trigger flow control. */ -static inline void chained_irq_enter(struct irq_chip *chip, +static inline void chained_irq_enter(const struct irq_chip *chip, struct irq_desc *desc) { /* FastEOI controllers require no action on entry. */ @@ -29,7 +29,7 @@ static inline void chained_irq_enter(struct irq_chip *chip, } } -static inline void chained_irq_exit(struct irq_chip *chip, +static inline void chained_irq_exit(const struct irq_chip *chip, struct irq_desc *desc) { if (chip->irq_eoi) -- 2.47.0