From nobody Mon Jun 8 08:36:18 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 61D5948BD41; Wed, 3 Jun 2026 14:25:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780496714; cv=none; b=WFIRspDB0jL+q1kPjqTlUrTjj8I+ESJvdbxuBgyrKfQ8LLNrLui8+LLWMoXf5SYCouQxoH/g2TO9TCQ2WPGf5acFZsZnh/sndiDrtCycnVQYXnj7VdfMVUAndw4dr9lLMEAwAisS7o4iJFqa9vuQVYE+wCqo0SkfQi5J1T7IMI0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780496714; c=relaxed/simple; bh=zL3i2D37X+VWGULFBSkANHXoaL8pRZBZGQGpFp6UJaU=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=jKAY4NW4x8pu+Hbq7nPJTLh4tYOrpgDN90NA9BeCpfzBCCopZGm1tYKWAqx8ukjUYldtIvNx+bcoHM7z4HO22L1whVHe5n267FQc/9+H4lc+VT8tcrzei6uCWkhG4JupfJUhDgvL2LgfP0oUEBsEOdA1r+La5NGOk15TpupCjEs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=p3sbZvpG; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=N5WejtV2; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="p3sbZvpG"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="N5WejtV2" Date: Wed, 03 Jun 2026 14:25:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1780496711; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ReWRfIQjfLy6v439p5ngd8oP581jd5LmI6lST3493D4=; b=p3sbZvpGcrehIgcUNltIngoYEjWxi8rN//ZyDyHH2Qc4h6JCXpgfq85Fc/qpS1reFBkG5d DRDFyHTt71hZJmdhjIQ8zda7KaIU9DYn9ln5pko7jgDrJA0Y4NfF4CBS8ZfBhuQ+su9UHm fB3ado6u2PNaHDzezs5xgi4o2mhNotVK4XtjSsNTb0xU2viP9c3izduHwDtQeidsEexTzo 2e4wHMzdMtOBiIkSMLw6oq43Ambd20t6snngyKngt6SYvR+WQjM4UWQT4ayxPQHdYzA68g 4ap4n2iDXtlZshk7iyco/klq0lrs86nukNWTvTuMyzur7mYvju3dbABmzuReHQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1780496711; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ReWRfIQjfLy6v439p5ngd8oP581jd5LmI6lST3493D4=; b=N5WejtV2bLKqV0oVHQ0BufdU1ZSNj6ZMSsmXn5GQbI15B/qBtfRLqlZ9meyFiah+DnhXHn 238b5YY5f92NR1Cg== From: "tip-bot2 for Dmitry Ilvokhin" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] genirq: Move NULL check into irqdesc_lock guard unlock expression Cc: Dmitry Ilvokhin , "Peter Zijlstra (Intel)" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178049671035.710.11703253647538564119.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: 08d4a7837f008ea6031c1292aa839ad881d7b3f1 Gitweb: https://git.kernel.org/tip/08d4a7837f008ea6031c1292aa839ad88= 1d7b3f1 Author: Dmitry Ilvokhin AuthorDate: Tue, 02 Jun 2026 07:12:51=20 Committer: Peter Zijlstra CommitterDate: Wed, 03 Jun 2026 11:38:47 +02:00 genirq: Move NULL check into irqdesc_lock guard unlock expression irqdesc_lock uses __DEFINE_UNLOCK_GUARD() directly with a custom constructor that can set .lock to NULL. In preparation for removing the NULL check from __DEFINE_UNLOCK_GUARD(), move the NULL check into the irqdesc_lock unlock expression, making the NULL handling explicit at the call site. No functional change. Signed-off-by: Dmitry Ilvokhin Signed-off-by: Peter Zijlstra (Intel) Acked-by: Thomas Gleixner Link: https://patch.msgid.link/ab457810653e4356e29b2d74ba616478bd9328ad.178= 0064327.git.d@ilvokhin.com --- kernel/irq/internals.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/internals.h b/kernel/irq/internals.h index 9412e57..347cb33 100644 --- a/kernel/irq/internals.h +++ b/kernel/irq/internals.h @@ -171,7 +171,7 @@ void __irq_put_desc_unlock(struct irq_desc *desc, unsig= ned long flags, bool bus) =20 __DEFINE_CLASS_IS_CONDITIONAL(irqdesc_lock, true); __DEFINE_UNLOCK_GUARD(irqdesc_lock, struct irq_desc, - __irq_put_desc_unlock(_T->lock, _T->flags, _T->bus), + if (_T->lock) __irq_put_desc_unlock(_T->lock, _T->flags, _T->bus), unsigned long flags; bool bus); =20 static inline class_irqdesc_lock_t class_irqdesc_lock_constructor(unsigned= int irq, bool bus,