Message ID | 168148367520.404.8281581917129598548.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6358:3046:b0:115:7a1d:dabb with SMTP id p6csp390793rwl; Fri, 14 Apr 2023 08:10:37 -0700 (PDT) X-Google-Smtp-Source: AKy350YwYIyDZAi5LX67B6c+fPdAZk037kS30bITNRw2VpsP2HdBnDqx+kaEpnblzVdGnqBmwNgo X-Received: by 2002:a05:6870:238a:b0:187:8553:58a7 with SMTP id e10-20020a056870238a00b00187855358a7mr3834069oap.7.1681485037595; Fri, 14 Apr 2023 08:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681485037; cv=none; d=google.com; s=arc-20160816; b=QhFprSzvt6WGmL7VOv6QCtfSrxzoWgnODr40oNov5VEvsDlWEJ/qk0y9+m53imEbDh uCPLOXqtEdxkLxuidSNtGqsrNCK+dO9OrwBmMlI1Qrn57xl1Rjn+Pg4yO9MM1DysDsZ3 BSQX11T1y8I6sj9kSob6AynMhzfLmeCZprCBY/8CTbjH6aOZinjz+/3363wHtOuEWkEj wnSKK//oUjg4vWSxMGsrgLQxDtKJrAvq1WlSaTLTcQa959M/fuyv5YPC+Xlhc2VviZEU JmfK7fl4kIpFARXJBV0YgZ5P9nBefhddHo5AvHg2BtvqwY7H2p+I0c1SHBAAuQgjaQ6V mKOA== 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=SQvYuxUC/QcIQvw+Ivq8Y82aImbh6rzooJmlsMHXwBc=; b=C0o9JW/flRLMv/+5zbO883WHI/83zjhmL+YuaEI8E+EIvocLYZYQDUOCAs2MjNnhy3 HTecsqbszS458k5Uf1rplBBEhMeSXDBUVc74yiaRxyESJPQHY6KPz2Yr6dep4p0xVJVE OD4Lki3Vtb6K5RR1nw9WYIOGK9tGcJaAPHJN7/xPtZBBKtz8o0z5+rn0s5jRF9uX9R8E fdWrnNS4pCONlax714Ve3EEBBe+78A+DB/Aw+EkEp0XLcop+VGfBQ3LembpUfoY2x22+ 0xTIh3/HztwzlKnohV1PT4pizM7NAzUbwwK7dcEnDKK219Ec7x5GnTTmaymdPlIqDdWe mKSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SuEmgiAL; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=qCM4DzgG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m23-20020a9d7ad7000000b006a3e32d1b4bsi4295576otn.49.2023.04.14.08.10.23; Fri, 14 Apr 2023 08:10:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SuEmgiAL; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=qCM4DzgG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbjDNOsF (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Fri, 14 Apr 2023 10:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230056AbjDNOr7 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Apr 2023 10:47: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 EE932B771; Fri, 14 Apr 2023 07:47:56 -0700 (PDT) Date: Fri, 14 Apr 2023 14:47:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1681483675; 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=SQvYuxUC/QcIQvw+Ivq8Y82aImbh6rzooJmlsMHXwBc=; b=SuEmgiALoFQt6hFhTxL6puYYkE6UrSCxOidJ5g1yM+rnoj0RZ+5HocODO4w9xPCsRdEXOD eC4mRI9bDNJ+Tq7hN98UA4lCCjzmxKBuHGfwhr2wuVS6BD9yppqUr4VX0eFqe2PZ9rZ+Os jox5XNzG9I/OWBP0ITUNcOKQQxFeqqQ/8smPZMPwYetFKaSuxDCcn3vKcKOvTV8pJhxMV1 yUBceoYf6tkfJCqSZfHSgFyvyAE2pAYrRKXT0AhB6DESy0aXRs2I0FDafg3RWKLYPZFrEc kXQ/JojtwLkxfxIm3r3NB0XNT/Jfm96zqnzbgOR0+PFZCAGos1HGyvyfxV0y9w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1681483675; 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=SQvYuxUC/QcIQvw+Ivq8Y82aImbh6rzooJmlsMHXwBc=; b=qCM4DzgGhCCpg7dP1iHj2PVygRqIaTc49pGiThYiLxNNRzNUYVyZy+LsfPWx9vaOVuyDcG nA2hjG7TtUhfg9BQ== From: "tip-bot2 for Josh Poimboeuf" <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] objtool: Remove superfluous dead_end_function() check Cc: Josh Poimboeuf <jpoimboe@kernel.org>, "Peter Zijlstra (Intel)" <peterz@infradead.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <5d603a301e9a8b1036b61503385907e154867ace.1681325924.git.jpoimboe@kernel.org> References: <5d603a301e9a8b1036b61503385907e154867ace.1681325924.git.jpoimboe@kernel.org> MIME-Version: 1.0 Message-ID: <168148367520.404.8281581917129598548.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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763000498483239977?= X-GMAIL-MSGID: =?utf-8?q?1763164855270375969?= |
Series |
[tip:,objtool/core] objtool: Remove superfluous dead_end_function() check
|
|
Commit Message
tip-bot2 for Thomas Gleixner
April 14, 2023, 2:47 p.m. UTC
The following commit has been merged into the objtool/core branch of tip: Commit-ID: 6126ed5dfbc656374e851bfdfb128f3aa9e1263a Gitweb: https://git.kernel.org/tip/6126ed5dfbc656374e851bfdfb128f3aa9e1263a Author: Josh Poimboeuf <jpoimboe@kernel.org> AuthorDate: Wed, 12 Apr 2023 12:03:22 -07:00 Committer: Peter Zijlstra <peterz@infradead.org> CommitterDate: Fri, 14 Apr 2023 16:08:29 +02:00 objtool: Remove superfluous dead_end_function() check annotate_call_site() already sets 'insn->dead_end' for calls to dead end functions. Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/5d603a301e9a8b1036b61503385907e154867ace.1681325924.git.jpoimboe@kernel.org --- tools/objtool/check.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 9de3972..1cf2e28 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -4078,8 +4078,7 @@ static bool ignore_unreachable_insn(struct objtool_file *file, struct instructio * It may also insert a UD2 after calling a __noreturn function. */ prev_insn = prev_insn_same_sec(file, insn); - if ((prev_insn->dead_end || - dead_end_function(file, insn_call_dest(prev_insn))) && + if (prev_insn->dead_end && (insn->type == INSN_BUG || (insn->type == INSN_JUMP_UNCONDITIONAL && insn->jump_dest && insn->jump_dest->type == INSN_BUG)))