Skip to content

Commit 90876d9

Browse files
gregkhKAGA-KOKO
authored andcommitted
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@linuxfoundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://patch.msgid.link/2025121731-facing-unhitched-63ae@gregkh
1 parent dbcc728 commit 90876d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/irq/irqdomain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static int irq_domain_set_name(struct irq_domain *domain, const struct irq_domai
187187
const struct fwnode_handle *fwnode = info->fwnode;
188188

189189
if (is_fwnode_irqchip(fwnode)) {
190-
struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
190+
const struct irqchip_fwid *fwid = container_of(fwnode, struct irqchip_fwid, fwnode);
191191

192192
/*
193193
* The name_suffix is only intended to be used to avoid a name

0 commit comments

Comments
 (0)