From nobody Thu Apr 9 09:10:49 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 DC0754218A3; Mon, 9 Mar 2026 19:59:53 +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=1773086395; cv=none; b=PkRwNqoXj2u0El+is37nvtypL8EclxOkx3rG2GMMKmy5pwYAsWrUJf4D0OG+k3KS0slULziTDpMzr+C62IM9FNNXtr7Ni33dS3/WoAcnlUwFsom8ylwr+m3q1UDRLGnzpa6kZCE735abxR1Y6MQGq7oCp3XRU3JkcYa/fNPkV94= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773086395; c=relaxed/simple; bh=WRx0AuXiniQtBUZ5oxRC1hsRg+EBpQKygk07fSoU/9M=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=qqrGGO+t+P3vus4qyY4cAlI4Pt1YjFyvjGJbjP6wTCW+w/sBHuKnb9LIyGM7IdEROU2K6qQJvx2K8JDmIgR1Kt/7ggvNFRNjsndFCbYmtzbn39meciKN4FiHG843sclQIJeE7Bmz/tgsq/ykGLI2YeDnNsU40ZuwNqL4iZDV7k8= 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=tNrBQUFr; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=kmMdgNoW; 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="tNrBQUFr"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="kmMdgNoW" Date: Mon, 09 Mar 2026 19:59:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773086392; 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=rBfBzY7zObrAetwHk+D4bTfnH5bmshufujOn5KP9K08=; b=tNrBQUFrVjOehaavF2gi9M4fWT1GRjAusa0YgLmt1MMtLYCDHKoZITwizRIcNcyoM5yH3i 5VvZbwg/GLtJziO020i+uv3LVx9WOWvNVrkMWMlqI23oV73xv43qODCzuLZc8Ok94ZWegR YBC9BMYWrYskug+wouZDTBDvikh3KAdTI/ny9uBPww/YlA6z9f4KE6cIS31cYGIMxxoOa3 kNUX9oQHeI1Fx7NOuP8pyowftaSv/Y20LQWg37fUyf9wU8cbeIXOZhuth+2GyWdD+aGxZc 0iJfbYfCY3dWp/zy3Y2fHP+0nRLB0CZbYWtk7PPUf2+EMjkjM6OuA/UZCM1Hyg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773086392; 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=rBfBzY7zObrAetwHk+D4bTfnH5bmshufujOn5KP9K08=; b=kmMdgNoWEOICS3UqNP+YKo47NcoljkVFG+XWZAWbMVZHLVb4TZC6hc3egIW2H6mQDMGQdx OHYyX74rbuMDuvDw== From: "tip-bot2 for Song Liu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool/klp: Remove redundant strcmp() in correlate_symbols() Cc: Song Liu , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260305231531.3847295-2-song@kernel.org> References: <20260305231531.3847295-2-song@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177308639137.1647592.1267828359999008139.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 objtool/core branch of tip: Commit-ID: a1cbaff2ea23645f0a94fdfa721aef202aebdf86 Gitweb: https://git.kernel.org/tip/a1cbaff2ea23645f0a94fdfa721aef202= aebdf86 Author: Song Liu AuthorDate: Thu, 05 Mar 2026 15:15:25 -08:00 Committer: Josh Poimboeuf CommitterDate: Fri, 06 Mar 2026 08:08:23 -08:00 objtool/klp: Remove redundant strcmp() in correlate_symbols() find_global_symbol_by_name() already compares names of the two symbols, so there is no need to compare them again. Signed-off-by: Song Liu Link: https://patch.msgid.link/20260305231531.3847295-2-song@kernel.org Signed-off-by: Josh Poimboeuf --- tools/objtool/klp-diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/klp-diff.c b/tools/objtool/klp-diff.c index 885775f..639bdd3 100644 --- a/tools/objtool/klp-diff.c +++ b/tools/objtool/klp-diff.c @@ -454,7 +454,7 @@ static int correlate_symbols(struct elfs *e) =20 sym2 =3D find_global_symbol_by_name(e->patched, sym1->name); =20 - if (sym2 && !sym2->twin && !strcmp(sym1->name, sym2->name)) { + if (sym2 && !sym2->twin) { sym1->twin =3D sym2; sym2->twin =3D sym1; }