[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <176610146385.510.2004806637905660684.tip-bot2@tip-bot2>
Date: Thu, 18 Dec 2025 23:44:23 -0000
From: "tip-bot2 for Greg Kroah-Hartman" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
linux-kernel@...r.kernel.org, maz@...nel.org
Subject:
[tip: irq/core] irqdomain: Fix up const problem in irq_domain_set_name()
The following commit has been merged into the irq/core branch of tip:
Commit-ID: 90876d9b37a0db170d5998c6c903eab2d56fd7cb
Gitweb: https://git.kernel.org/tip/90876d9b37a0db170d5998c6c903eab2d56fd7cb
Author: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
AuthorDate: Wed, 17 Dec 2025 13:46:32 +01:00
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitterDate: Fri, 19 Dec 2025 00:39:39 +01:00
irqdomain: Fix up const problem in irq_domain_set_name()
In irq_domain_set_name() a const pointer is passed in, and then the
const is "lost" when container_of() is called. Fix this up by properly
preserving the const pointer attribute when container_of() is used to
enforce the fact that this pointer should not have anything at it
changed.
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Link: https://patch.msgid.link/2025121731-facing-unhitched-63ae@gregkh
---
kernel/irq/irqdomain.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c
index 2652c4c..094e891 100644
--- a/kernel/irq/irqdomain.c
+++ b/kernel/irq/irqdomain.c
@@ -187,7 +187,7 @@ static int irq_domain_set_name(struct irq_domain *domain, const struct irq_domai
const struct fwnode_handle *fwnode = info->fwnode;
if (is_fwnode_irqchip(fwnode)) {
- struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
+ const struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
/*
* The name_suffix is only intended to be used to avoid a name
Powered by blists - more mailing lists