[tip:,objtool/core] x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find()
Message ID | 169527896379.27769.3655940245811968387.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5028096vqi; Thu, 21 Sep 2023 10:54:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGWN17ak0XnSg62HlR2rCO5lEZXpzMP0FImhX1FFWF67Ws8zoXKbn08OqSwi/wKA2yTYbSH X-Received: by 2002:a17:90a:3187:b0:273:f887:be17 with SMTP id j7-20020a17090a318700b00273f887be17mr6238717pjb.47.1695318873297; Thu, 21 Sep 2023 10:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695318873; cv=none; d=google.com; s=arc-20160816; b=c2GcjamkRW7dbI+rDW6UgpOdjjedXHJRPKHad4s4suOIt3oubzf0owZrP6NS7Z4exF IykWCqC0xDYtFfXr+7pmW/1BCxaWLkPcWUTILI+SmyBE8jlIRcmMQxxv1iVjcqWbhqUI /OcYlzMd6t/My8ODsNT2ghn5+BBaoD1+lWoqiq5dcqy61/PHt7wfseV50GLq0aQB74jh zB3Ma1nxYZWsYmyLEvpYXliR8rrJbvppUW01SxxcetIc0chQL7iLru7AchX7NAEiCwty PZjeqEmpMouEEUwTicf5t9SDEfNbfAu8TAokOhDehgcChL6qCWVqBWg/whDcUGGzJzn8 epRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=9F0spGRPHXeTOxcSn6yRhRnx9hV6elwlzOuk+huTzII=; fh=HXWSRfmLTOJ1WzzWuKI9EBTdgfuqlUojVAAk2i5ULiQ=; b=w1TLhsbpJ9L9CZdHJA244uf+J36VBmlthy3loEkJwXgrMjPAlrLee4rPY/8+nkkxZI 7Yc+d0/al7wgCBGM9XsfhSgZ2lIRaom87IIE5doVR2iXbG5LppUSBaBUi0zxS4oVvWso RKNenIeFVf7nDco+/AroEOvu5sC6ReLXtymDToLqai+iL52XDC5f+qYDv22FWVxNc2l/ IaVgPHYc2S4Oc7B72Gr++XIBTtTNBkkj+1V+rxbQzkFbhar+4HRsHLAEEbYGHSGKq21X 4/y+JXCMh+JBivBmkc8WEe17xCxUPIQK8pZmR/pgOkfW+rhDYGn6hZqbE5OMnXkKmTGw v35g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=olFseMA6; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id nm19-20020a17090b19d300b00263860e1f4csi4075089pjb.16.2023.09.21.10.54.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 10:54:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=olFseMA6; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2D2A7829EA30; Thu, 21 Sep 2023 10:49:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229894AbjIURtL (ORCPT <rfc822;pwkd43@gmail.com> + 29 others); Thu, 21 Sep 2023 13:49:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229572AbjIURs7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 21 Sep 2023 13:48:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C87A2DEB7; Thu, 21 Sep 2023 10:25:10 -0700 (PDT) Date: Thu, 21 Sep 2023 06:49:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1695278964; 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=9F0spGRPHXeTOxcSn6yRhRnx9hV6elwlzOuk+huTzII=; b=olFseMA6x0YTdVgUnhzm0IinaAVEn5Ws7+ciwzOobGpplL+3kuf7OWzFgiijDONrjL+LsH SyjQDCRxbYAIGj6ss6mT4dxk3rhm5CgcZ2BdAiVdXoLQG8L2kkTQ5/0HwGow0t8mjoMbXp e/1ZU9EXuZQz8kSP4DrRYaPPRZtBRYMN0++mLqrV+SQgFncT4sx0g0g+YEl42QWtji7pHD 5KojP/gN8VWcO0hcNSqQIvUZnwA18vgYQ4+1hvnC8sy30suIVKENoT/fHnSl9vp8iIRk/E 99tZOjpDXx+gQ91GlfOqwJuP40YbslIkWrORC6s4hvTfxAqCTrxVaequZyfe8Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1695278964; 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=9F0spGRPHXeTOxcSn6yRhRnx9hV6elwlzOuk+huTzII=; b=w/Td7f0L/wsrN0rqirurJggSYSzW7au0VZeD16dq/iyVXDljTsVfmF8oPce4wDpSUFsYYf 9yAYyIF/PwvwLtDw== From: "tip-bot2 for Colin Ian King" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find() Cc: Colin Ian King <colin.i.king@gmail.com>, Ingo Molnar <mingo@kernel.org>, Josh Poimboeuf <jpoimboe@redhat.com>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230920114141.118919-1-colin.i.king@gmail.com> References: <20230920114141.118919-1-colin.i.king@gmail.com> MIME-Version: 1.0 Message-ID: <169527896379.27769.3655940245811968387.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.3 required=5.0 tests=DATE_IN_PAST_06_12,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:49:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777670682803361271 X-GMAIL-MSGID: 1777670682803361271 |
Series |
[tip:,objtool/core] x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Sept. 21, 2023, 6:49 a.m. UTC
The following commit has been merged into the objtool/core branch of tip: Commit-ID: fef44ebaf61b57a71ab818058926a3f9a0ac81e6 Gitweb: https://git.kernel.org/tip/fef44ebaf61b57a71ab818058926a3f9a0ac81e6 Author: Colin Ian King <colin.i.king@gmail.com> AuthorDate: Wed, 20 Sep 2023 12:41:41 +01:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Thu, 21 Sep 2023 08:41:23 +02:00 x86/unwind/orc: Remove redundant initialization of 'mid' pointer in __orc_find() The 'mid' pointer is being initialized with a value that is never read, it is being re-assigned and used inside a for-loop. Remove the redundant initialization. Cleans up clang scan build warning: arch/x86/kernel/unwind_orc.c:88:7: warning: Value stored to 'mid' during its initialization is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20230920114141.118919-1-colin.i.king@gmail.com --- arch/x86/kernel/unwind_orc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c index 7e574cf..d00c28a 100644 --- a/arch/x86/kernel/unwind_orc.c +++ b/arch/x86/kernel/unwind_orc.c @@ -85,7 +85,7 @@ static struct orc_entry *__orc_find(int *ip_table, struct orc_entry *u_table, { int *first = ip_table; int *last = ip_table + num_entries - 1; - int *mid = first, *found = first; + int *mid, *found = first; if (!num_entries) return NULL;