From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
To: tglx@kernel.org
Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org,
Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Subject: [PATCH v2 2/7] irqchip: Constify "struct irq_chip *" parameter in cond_xxx_eoi_irq()
Date: Mon, 1 Jun 2026 22:19:02 +0200 [thread overview]
Message-ID: <4bff474cf71dc5f5e2fa4334eef4d501e8a67bf6.1780343698.git.christophe.jaillet@wanadoo.fr> (raw)
In-Reply-To: <cover.1780343698.git.christophe.jaillet@wanadoo.fr>
cond_unmask_eoi_irq() and cond_eoi_irq() don't modify their 'chip'
parameter.
So change the prototype of this function to accept const struct irq_chip
pointer.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
Compile tested only
Changes in v2:
- Update cond_eoi_irq() which is new since v1
v1: https://lore.kernel.org/all/db3ec8b3425552b3921281e88fe6a0b1cd55e20f.1731835733.git.christophe.jaillet@wanadoo.fr/
---
kernel/irq/chip.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c
index b635e3c5d5b6..04e478a2adaa 100644
--- a/kernel/irq/chip.c
+++ b/kernel/irq/chip.c
@@ -699,7 +699,8 @@ void handle_level_irq(struct irq_desc *desc)
}
EXPORT_SYMBOL_GPL(handle_level_irq);
-static void cond_unmask_eoi_irq(struct irq_desc *desc, struct irq_chip *chip)
+static void cond_unmask_eoi_irq(struct irq_desc *desc,
+ const struct irq_chip *chip)
{
if (!(desc->istate & IRQS_ONESHOT)) {
chip->irq_eoi(&desc->irq_data);
@@ -720,7 +721,7 @@ static void cond_unmask_eoi_irq(struct irq_desc *desc, struct irq_chip *chip)
}
}
-static inline void cond_eoi_irq(struct irq_chip *chip, struct irq_data *data)
+static inline void cond_eoi_irq(const struct irq_chip *chip, struct irq_data *data)
{
if (!(chip->flags & IRQCHIP_EOI_IF_HANDLED))
chip->irq_eoi(data);
--
2.54.0
next prev parent reply other threads:[~2026-06-01 20:28 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 20:19 [PATCH v2 0/7] Initial steps to constify irq_chip Christophe JAILLET
2026-06-01 20:19 ` [PATCH v2 1/7] irqchip: Constify "struct irq_chip *" parameter in chained_irq_xxx() functions Christophe JAILLET
2026-06-01 20:19 ` Christophe JAILLET [this message]
2026-06-01 20:19 ` [PATCH v2 3/7] pinctrl: samsung: Constify "struct irq_chip *" parameter in to_exynos_irq_chip() Christophe JAILLET
2026-06-01 20:19 ` [PATCH v2 4/7] irqchip: Constify some struct irq_chip * Christophe JAILLET
2026-06-01 20:19 ` [PATCH v2 5/7] x86/irq: Constify a " Christophe JAILLET
2026-06-01 20:19 ` [PATCH v2 6/7] treewide: Constify some " Christophe JAILLET
2026-06-01 20:19 ` [PATCH v2 7/7] genirq/chip: Constify the 'chip' field in irq_data Christophe JAILLET
2026-06-02 20:36 ` [PATCH v2 0/7] Initial steps to constify irq_chip Thomas Gleixner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4bff474cf71dc5f5e2fa4334eef4d501e8a67bf6.1780343698.git.christophe.jaillet@wanadoo.fr \
--to=christophe.jaillet@wanadoo.fr \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tglx@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®