From nobody Sun Feb 8 15:58:36 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E6CBD33A00A for ; Wed, 17 Dec 2025 12:46:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765975602; cv=none; b=CImz2IecD4Hghv6E5mFAwSIItd+yOLE42d+Hmv2/EysQF6fpNnaRMvLqx9y9kO8Bmd2fShsh0Y0LeLaOPVwv7Syo621XYtX7/WwE/y6pPmkl1RvsNjuuzJVvl10i6A0UnBlIyyfAXGNoMCteFnEu0L23+7n/+rmMui3tQW7R3Go= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765975602; c=relaxed/simple; bh=Ix7xzAUvWnbhRjqOhop4ZwONTgSSCqMta9Qfl/CP51A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j8UB0luZs5oo68YfF73jf4vS5gXRE8KfVaPwJD1RMTqUN6OU0DfhBkiHFZYJq7aCjbyud+tN7ECjSX5j8oO0KvyNYHu+4fmnnqlGGKZSy/PpVqrW3n3ND1auxOg/ho3sfZ4uRG7P7DQb2nhoTbSz655GRPaMS9XHNvedC8cZGlo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fGXbHo3B; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="fGXbHo3B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD46CC4CEF5; Wed, 17 Dec 2025 12:46:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765975600; bh=Ix7xzAUvWnbhRjqOhop4ZwONTgSSCqMta9Qfl/CP51A=; h=From:To:Cc:Subject:Date:From; b=fGXbHo3BufWTl10dc4yrgOqjUNCYobENowcrKM+sqGt+Om+Lv5CQi6gOGhtUt1QIi 8oZfSiw1X4vjL0U3B356kVxi7/CeOpiJtQf5hhRfbfGkYwAe5E6Qkd9ThQt9uto1ou pflEyX3edXkYIX27VvtPD4TCPLetyFO9hHpe4zuc= From: Greg Kroah-Hartman To: tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH] irqdomain: fix up const problem in irq_domain_set_name() Date: Wed, 17 Dec 2025 13:46:32 +0100 Message-ID: <2025121731-facing-unhitched-63ae@gregkh> X-Mailer: git-send-email 2.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1105; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ix7xzAUvWnbhRjqOhop4ZwONTgSSCqMta9Qfl/CP51A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlOy9SZ2dvib35v0w9Sf/GQde+D6JvCSrwtxpuUr0+Tn mQ06SJjRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykYQLDgs4f5jUeW+z4JE32 LZA3bRD3+nR5GcNcIW77au+jmcV6YZeP9WouvbtAZ386AA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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. Cc: Thomas Gleixner Signed-off-by: Greg Kroah-Hartman --- 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 6991ef58bc5f..b5dda11b9caf 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -187,7 +187,7 @@ static int irq_domain_set_name(struct irq_domain *domai= n, const struct irq_domai const struct fwnode_handle *fwnode =3D info->fwnode; =20 if (is_fwnode_irqchip(fwnode)) { - struct irqchip_fwid *fwid =3D container_of(fwnode, struct irqchip_fwid, = fwnode); + const struct irqchip_fwid *fwid =3D container_of(fwnode, struct irqchip_= fwid, fwnode); =20 /* * The name_suffix is only intended to be used to avoid a name --=20 2.52.0