Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1561777ybb; Thu, 26 Mar 2020 03:11:14 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuJTZAoZ+T/3M1DPDMfOHuN7eqqD4J3h0w3fGbeV18emkq0J4dKY3B1XkRQo0jCTQtAa17e X-Received: by 2002:aca:a9d4:: with SMTP id s203mr1280091oie.106.1585217473913; Thu, 26 Mar 2020 03:11:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585217473; cv=none; d=google.com; s=arc-20160816; b=bWlMx4utmzQzFPBgRXDkIjFjEpF40K2RzKDT4torN1obdO3d6tp7msmrpokRNf2FwU NubkPSkrozZFgFQHnGSffer+hxVdj2jinj5NEgPjJM4tgdYTeiUc+NFyeY+qCXUIqTsA 03IwzWlRGHvwBjUbabyhyTcV+9egaK9GoYxu4x0nlhb7VHOvSVfOOMRtFyFmoU4TGDjO S46sMgGoKsf5f0pCNvTvOZfauudHBTd7FrhMdiAF/Jhw1GyIpSOdIEWnjxA6w8G6jESi AeFe22BDsGLOK2lu8Snzyv2jHAqXSbdTyokpYVvXQOL0n0D0Cr3U2BrZRYam9wCusodt KGeQ== 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=r0Qe3kBUoTq1HMGJDXCd0+VQBaUZLPFvobb05INKRb0=; b=YSNWapNcsjvVnTyUzYCq90JmLIMOdCaI5///DIOQ/hd/EguSqebh3Sp91l4dXssYLA gW43t0d4riLNqcLbT5TsovYsw53gEDmINN5DWm75PAvdQpBgRMi5gPb5VjGL5D+c1Saq JyzfEw5YeMCFmydjhFhwNBr9gZxx2W/7KDDXy9PoIU7BqGJQ0wTkQ4+7Pc6hA3s3Z2Gs yxMLkhKIZoVGUMzF5uiTj5y19xW9bQcQmeZP1CZbpCj/x76QoexUBmUZlzok5IYNYgql Jqm6HPMDeiGpDo9IZjatl001KpbZXRE3z6cRkyr9Zcj+gZAlQfk2NPBP29SYf2+/clM8 nxZw== 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 v14si842030oou.5.2020.03.26.03.11.01; Thu, 26 Mar 2020 03:11:13 -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 S1728119AbgCZKJS (ORCPT + 99 others); Thu, 26 Mar 2020 06:09:18 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50189 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbgCZKIm (ORCPT ); Thu, 26 Mar 2020 06:08:42 -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 1jHPRD-00046v-Uw; Thu, 26 Mar 2020 11:08:36 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 013CF1C0440; Thu, 26 Mar 2020 11:08:35 +0100 (CET) Date: Thu, 26 Mar 2020 10:08:34 -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 find_containing_func() Cc: "Peter Zijlstra (Intel)" , Miroslav Benes , Josh Poimboeuf , x86 , LKML In-Reply-To: <20200324160924.558470724@infradead.org> References: <20200324160924.558470724@infradead.org> MIME-Version: 1.0 Message-ID: <158521731454.28353.17616231128837111954.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: 53d20720bbc8718ef86fdfe53dec0accfb593ef8 Gitweb: https://git.kernel.org/tip/53d20720bbc8718ef86fdfe53dec0accfb593ef8 Author: Peter Zijlstra AuthorDate: Mon, 16 Mar 2020 10:36:53 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 25 Mar 2020 18:28:29 +01:00 objtool: Rename find_containing_func() For consistency; we have: find_symbol_by_offset() / find_symbol_containing() find_func_by_offset() / find_containing_func() fix that. Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Miroslav Benes Acked-by: Josh Poimboeuf Link: https://lkml.kernel.org/r/20200324160924.558470724@infradead.org --- tools/objtool/elf.c | 2 +- tools/objtool/elf.h | 2 +- tools/objtool/warn.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index 3a8b426..07db4df 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -187,7 +187,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset) return NULL; } -struct symbol *find_containing_func(struct section *sec, unsigned long offset) +struct symbol *find_func_containing(struct section *sec, unsigned long offset) { struct rb_node *node; diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h index e4a8d68..d18f466 100644 --- a/tools/objtool/elf.h +++ b/tools/objtool/elf.h @@ -91,7 +91,7 @@ struct symbol *find_symbol_containing(struct section *sec, unsigned long offset) struct rela *find_rela_by_dest(struct section *sec, unsigned long offset); struct rela *find_rela_by_dest_range(struct section *sec, unsigned long offset, unsigned int len); -struct symbol *find_containing_func(struct section *sec, unsigned long offset); +struct symbol *find_func_containing(struct section *sec, unsigned long offset); struct section *elf_create_section(struct elf *elf, const char *name, size_t entsize, int nr); struct section *elf_create_rela_section(struct elf *elf, struct section *base); diff --git a/tools/objtool/warn.h b/tools/objtool/warn.h index cbb0a02..7799f60 100644 --- a/tools/objtool/warn.h +++ b/tools/objtool/warn.h @@ -21,7 +21,7 @@ static inline char *offstr(struct section *sec, unsigned long offset) char *name, *str; unsigned long name_off; - func = find_containing_func(sec, offset); + func = find_func_containing(sec, offset); if (func) { name = func->name; name_off = offset - func->offset;