Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5007751ybb; Tue, 24 Mar 2020 09:15:15 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtBoGIcN1ePqMphee/COzqU1Gelg9JOqAVk4dAxTNUNBA5bHzf2a0Sz87LzAHdRywln4KYm X-Received: by 2002:a9d:7d89:: with SMTP id j9mr21033077otn.47.1585066515063; Tue, 24 Mar 2020 09:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585066515; cv=none; d=google.com; s=arc-20160816; b=jgoaw6ZvvWbm2eKR/enaRhf1C62xY7YdwsxPKeOlOKagskH/JYb+03ZiKMeoCmWoml HL7m/qIkcmbF2bu3K8iL38AImZXwUrSrM+dC6wC0pQFKzUhsjDKhA2egEA8iElrSQ+cZ /HtDXczbFlgCRTaxYtAfqsReu1p3EI3Rw9a9EIgztQIv/0BaMKHV5KwgJNOupCD8BYce FgkM9Ek7mdKpPeJG3kjdEWEv7xdHkVDDVMYvB9Kd1HY/Ck6duSfzqn2wqHX0jUN3TVOq kDUcU+Jaa5ywTSfV1KUbyOgG10g5AQK9jMdJoDXqZx+j70t9UBfP3SiyQi7ivH59MEI3 U+9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id:dkim-signature; bh=dCXjFUGfk843n9oykCpvB/oOEVCL3ZyDFoIlQzoYOq0=; b=oNMdTfwnjCisa75aU2u/C720EXo0nnPA6TmAZf2KZKdzeYvaNaIcecVaizNMWheFKo 0RxzKcuLGJ2Jq+B+vBnWNwFdXsPDO+/Jje+3FvAuhBiDXp6UWAAVo+dIMkFpZfcy4JnK X4ZDSWj4fU49AfF4cWw2K8htMWr5AzVxtmmZ5AaKp4/hJ5eaHuCDBkEksM1vIbCaUzER MeZ6t2i/HS7j+ESKrd/WqkLxYfYDMnVUqjOW3s4iPtoBAbBBMMN4VmJDV+kMF8T2bgwy /H3sFCSb+5O/E4+wx/T8QUvEL1gOc9qFLsZDbxVjtWTIiEaYwIuYj4TKcnSVKKdLHLmK OMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hMy99Y+n; 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 94si9328136otc.25.2020.03.24.09.15.01; Tue, 24 Mar 2020 09:15:15 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hMy99Y+n; 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 S1728366AbgCXQLg (ORCPT + 99 others); Tue, 24 Mar 2020 12:11:36 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36866 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727688AbgCXQLf (ORCPT ); Tue, 24 Mar 2020 12:11:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: Subject:Cc:To:From:Date:Message-Id:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:In-Reply-To; bh=dCXjFUGfk843n9oykCpvB/oOEVCL3ZyDFoIlQzoYOq0=; b=hMy99Y+nSNkGsnk11fO3dPQrNr VB/mUVpwrLmnxn7HMeQue8Kd3roILT0aI67E+C2iawm9XuX0k6Kz8oaQ9kSewOTZy9Op6Jm+A73Zg qMnxxmZokWE5Qe5tXhUO/Khp+ykIVvEYvHFgx6hCPKL7fIyw7w3a6sWgKKaHMDPHUy8i91GD7UTDU dCoONEK1VHILQPo3l6i2UdqCOpB2g2G5q8aIkEqON/bERzn+AzdU8s0tXxPYQ8R1Jt11KDAqdphSe ECzHS+hFy67Di0EGLfpAfDLMJgYNqI2RoSzoNM4NdR6uOyjVS+V9qzYwLWqeP8oAghv4SMUCCJd46 wE3h665g==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jGm9L-0006bW-LY; Tue, 24 Mar 2020 16:11:31 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4B732307112; Tue, 24 Mar 2020 17:11:28 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 0) id 3BA7629A490FB; Tue, 24 Mar 2020 17:11:28 +0100 (CET) Message-Id: <20200324160924.558470724@infradead.org> User-Agent: quilt/0.65 Date: Tue, 24 Mar 2020 16:31:24 +0100 From: Peter Zijlstra To: tglx@linutronix.de, jpoimboe@redhat.com Cc: linux-kernel@vger.kernel.org, x86@kernel.org, peterz@infradead.org, mhiramat@kernel.org, mbenes@suse.cz, brgerst@gmail.com Subject: [PATCH v3 11/26] objtool: Rename find_containing_func() References: <20200324153113.098167666@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) Acked-by: Josh Poimboeuf --- tools/objtool/elf.c | 2 +- tools/objtool/elf.h | 2 +- tools/objtool/warn.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -187,7 +187,7 @@ struct symbol *find_symbol_containing(st 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; --- a/tools/objtool/elf.h +++ b/tools/objtool/elf.h @@ -91,7 +91,7 @@ struct symbol *find_symbol_containing(st 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); --- a/tools/objtool/warn.h +++ b/tools/objtool/warn.h @@ -21,7 +21,7 @@ static inline char *offstr(struct sectio 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;