Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1560578ybb; Thu, 26 Mar 2020 03:09:51 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt3CXaaOl2g0te81TbCBrPo7Ihi+w6CFU80W59Xw4pSjESmKRU3zQ6xFETZ1UjxbvvhVHq5 X-Received: by 2002:aca:4c12:: with SMTP id z18mr1189471oia.43.1585217390855; Thu, 26 Mar 2020 03:09:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585217390; cv=none; d=google.com; s=arc-20160816; b=0T547A4C4JCepZVeI/he+a87bbTr/wVZh5C81zIGy0zI6Bw6xtNrNv87yHOfIxn2zL 2ntkFsHes9jrYlWTDcTCZwHbOSJXdNhmDt4ePRlMXApI3TCsQVBRnBY6KcKULxw0XFxD fbMa+cJIwCFcl8v+KbXeo9mA1EGfLMHuKkAaJS0KzY5tExPMzgbBOZY83S8VR9QY2eik GPHTKebHUGDEBs7A6Fsa7/eosMkAAKuYR12AgJMv14TAJj1xwE5k/0je99jR26CbuGph YQU19udSazhLCzBOMHdL1HioVHygC6bqKCEgij+ju8hYpVofzvJalDQ40SQSlZP+BJ0c 6jXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=BzEyiTI5XC3FLGZfX9YXrrkTUhp4l6lDqE5XKFxl86o=; b=QIJrIEx1JUCh1lkg5P6ivA0ObLZTHiJ/7HTFxDwvRHJadHOeF2AJw3+RF0B3XLm7tJ WSs9AqfwKOmT5DAImMwtEXRa89lNZYLIKXy5Tu5rBJeQrDJSlXAXCFMurGKOp4cYejsU r45hm/ZDeoPAhdg+JLufGe/UyvDtubTtu1VUH0lWkkJ2hB5z9NxbRN1+Kb44zX6adFCD 5eL90TdFp/Cyz3QnUlnEyeUxWcONpINK12Nt2w8SUwJH9mx79G1GdmjyYzFMFGYKGIzn YZiirAJpBjW2G7ZPtuX5GYd16PWTU5m8wr38gWQ5lUKM94X8ukaxZcpfuSaop7ydmoP2 AkDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si894751ota.32.2020.03.26.03.09.37; Thu, 26 Mar 2020 03:09:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728081AbgCZKJG (ORCPT + 99 others); Thu, 26 Mar 2020 06:09:06 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50222 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727943AbgCZKIp (ORCPT ); Thu, 26 Mar 2020 06:08:45 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jHPRI-00049A-9W; Thu, 26 Mar 2020 11:08:40 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id BFAAC1C048C; Thu, 26 Mar 2020 11:08:38 +0100 (CET) Date: Thu, 26 Mar 2020 10:08:38 -0000 From: "tip-bot2 for Peter Zijlstra" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/objtool] objtool: Rename func_for_each_insn_all() Cc: "Peter Zijlstra (Intel)" , Miroslav Benes , Josh Poimboeuf , x86 , LKML In-Reply-To: <20200324160924.083720147@infradead.org> References: <20200324160924.083720147@infradead.org> MIME-Version: 1.0 Message-ID: <158521731844.28353.3388328240594789282.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/objtool branch of tip: Commit-ID: f0f70adb78108a0cbc321a07133cd78ea4f84699 Gitweb: https://git.kernel.org/tip/f0f70adb78108a0cbc321a07133cd78ea4f84699 Author: Peter Zijlstra AuthorDate: Tue, 10 Mar 2020 18:27:24 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 25 Mar 2020 18:28:27 +01:00 objtool: Rename func_for_each_insn_all() Now that func_for_each_insn() is available, rename func_for_each_insn_all(). This gets us: sym_for_each_insn() - iterate on symbol offset/len func_for_each_insn() - iterate on insn->func Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Miroslav Benes Acked-by: Josh Poimboeuf Link: https://lkml.kernel.org/r/20200324160924.083720147@infradead.org --- tools/objtool/check.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 564ea1d..43f7d3c 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -72,7 +72,7 @@ static struct instruction *next_insn_same_func(struct objtool_file *file, return find_insn(file, func->cfunc->sec, func->cfunc->offset); } -#define func_for_each_insn_all(file, func, insn) \ +#define func_for_each_insn(file, func, insn) \ for (insn = find_insn(file, func->sec, func->offset); \ insn; \ insn = next_insn_same_func(file, insn)) @@ -170,7 +170,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, if (!insn->func) return false; - func_for_each_insn_all(file, func, insn) { + func_for_each_insn(file, func, insn) { empty = false; if (insn->type == INSN_RETURN) @@ -185,7 +185,7 @@ static bool __dead_end_function(struct objtool_file *file, struct symbol *func, * case, the function's dead-end status depends on whether the target * of the sibling call returns. */ - func_for_each_insn_all(file, func, insn) { + func_for_each_insn(file, func, insn) { if (is_sibling_call(insn)) { struct instruction *dest = insn->jump_dest; @@ -430,7 +430,7 @@ static void add_ignores(struct objtool_file *file) continue; } - func_for_each_insn_all(file, func, insn) + func_for_each_insn(file, func, insn) insn->ignore = true; } } @@ -1122,7 +1122,7 @@ static void mark_func_jump_tables(struct objtool_file *file, struct instruction *insn, *last = NULL; struct rela *rela; - func_for_each_insn_all(file, func, insn) { + func_for_each_insn(file, func, insn) { if (!last) last = insn; @@ -1157,7 +1157,7 @@ static int add_func_jump_tables(struct objtool_file *file, struct instruction *insn; int ret; - func_for_each_insn_all(file, func, insn) { + func_for_each_insn(file, func, insn) { if (!insn->jump_table) continue;