From nobody Fri Apr 3 00:00:15 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 A4AA4248F62; Wed, 25 Mar 2026 17:12:45 +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=1774458767; cv=none; b=gn/FjprSZ/wjX7NR7ksr9Dply/h9hkMP0BKv5fMloYOMEr1y0OEJyrBdW0qmAlEGSbn2NxDoOC4VP1suVXwMOVvv1ngYdKlwydX1DoMXPdkEH0rJYgkk4lerYDGPV9A1IjhOq1GKEaNwQyoF8hZ4p4gF08ijPgb4W4Wer7obfb4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774458767; c=relaxed/simple; bh=Cp8Vgbgk1rLeAHNPTyg//dC9OFPbSj4E6ozH0YfRjWo=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=eSQ41W9boKbh7TiMR8Q3kMJBTQW3tCAXuk4ioQJwT5hoQuGn1uSHMMZxGuwuCuHg3g94bmIXCzWzmJcKAIKaDqGejxTneN9Mrtqobt4DYhuKgGjazsuSZ61VIE1OrSTlmWaWlEq34fdsPBZIXhz3uJkbKTk+j39GshI6LLpJxTY= 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=R/jS1BqU; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=uXOSUCD2; 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="R/jS1BqU"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="uXOSUCD2" Date: Wed, 25 Mar 2026 17:12:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1774458763; 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=jJarXKVXf9WTT4GhiEu4lEuMiEdHUghZe5ZbmA1qRaE=; b=R/jS1BqUxSHvpcjGClBxHDXWZMWImGJQcgZytHhjlc/iFYN/Ul9o6tgPSH4CqSFL8OtOiW Z0wfHJxDnQvJfPkDRSiCPFyl8s8iy452m27GzfYDF91wECSw6Hl7gPM2552cGGRzLEXcU3 rkF8sdoT8u3pPaycdOXwLU+sPBQghRYo5srAVSvIAt9JxDpvd3TejAFRVhsiZHZLb5aXd7 8PEyWtiB2o13ou7+c9I2RzmY90f+zV3Ds4Bpq5uIgri/5s7sIfwU9AA0OhUy7QdrD67xXH 7t1r+DrpK1lhganVVkVyMiHO0rE1afDSE9yZZ/N7VQgJynB5lpdzX0yj6UZHeQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1774458763; 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=jJarXKVXf9WTT4GhiEu4lEuMiEdHUghZe5ZbmA1qRaE=; b=uXOSUCD2DnZfbvdbfp87uLLYmEtLS51A8h2M6oxvhRiNPHgSQLcUcUqfJ3Kl+DYoaafDgL 6TsoGOvdoXnTcQDg== From: "tip-bot2 for Philipp Hahn" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/debugobjects] debugobjects: Drop likely() around !IS_ERR_OR_NULL() Cc: Philipp Hahn , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260310-b4-is_err_or_null-v1-59-bd63b656022d@avm.de> References: <20260310-b4-is_err_or_null-v1-59-bd63b656022d@avm.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177445876216.1647592.16298710178798318840.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 core/debugobjects branch of t= ip: Commit-ID: 723ddce93e8db101e3cf30d9956240b964603c3c Gitweb: https://git.kernel.org/tip/723ddce93e8db101e3cf30d9956240b96= 4603c3c Author: Philipp Hahn AuthorDate: Tue, 10 Mar 2026 12:49:25 +01:00 Committer: Thomas Gleixner CommitterDate: Wed, 25 Mar 2026 18:07:39 +01:00 debugobjects: Drop likely() around !IS_ERR_OR_NULL() IS_ERR_OR_NULL() already uses likely(!ptr) internally. checkpatch points out the nesting: Remove the explicit use of likely(). Change generated with coccinelle. Signed-off-by: Philipp Hahn Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260310-b4-is_err_or_null-v1-59-bd63b656022= d@avm.de --- lib/debugobjects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 12f50de..12e2e42 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -1024,7 +1024,7 @@ void debug_object_assert_init(void *addr, const struc= t debug_obj_descr *descr) raw_spin_lock_irqsave(&db->lock, flags); obj =3D lookup_object_or_alloc(addr, db, descr, false, true); raw_spin_unlock_irqrestore(&db->lock, flags); - if (likely(!IS_ERR_OR_NULL(obj))) + if (!IS_ERR_OR_NULL(obj)) return; =20 /* If NULL the allocation has hit OOM */