Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1560212ybz; Thu, 23 Apr 2020 00:53:52 -0700 (PDT) X-Google-Smtp-Source: APiQypI8E6oDTfno5gcM39LQe8+NMZwABi/KBIJCIGzp8HOVYBVtNxTdWJg024Vz7ko8lL6jC4PL X-Received: by 2002:a17:907:2168:: with SMTP id rl8mr1549564ejb.360.1587628432826; Thu, 23 Apr 2020 00:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587628432; cv=none; d=google.com; s=arc-20160816; b=h7NMrVYYVmdMRsFiex19F1XhPGXzCQdnloX7npnQQCXqQt2t9J+O7/imqi4JjkG/Fn aDfSxfoycGFs0STGLS7oo4gg/2//lqtJ9W9O8orYxKCrGKm0d97HIdxazd9A2CjgAjYh AnpuUgeaSFOgeGe8+/CRfD0TOGeGr0eBYbGBfGMD93hfcv7DA/qzx5Haxh5pLCOPnHuC OilaU7PYoRutGMLUBfVRerAxmnhKF35hiv07Kj9w8fSwnRgA9DLpbPaOyClPSEfQ/6V+ L50Pgy8bQidFLi7n0yT5/YuE8JTgo7DLV2wFP2cXtjUeksfOpWIFIj7UmKMlmRc2leMt BgFQ== 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=m3oHYDtZqH5gAirVhoCKCb9Pd+dJxCtc+cjSPMGewzE=; b=NDAQWdh3+IUcmNXqB/nKsLPBEthtLm/I5ayOeNJf+AHSYkRI2thAaAGG6rcsq1o9oI 4sLbz/d5Ohf7lTT1A5aBwbFfNwhs/XjLbYNCCHA+50+ZHy9HUJA9kd03yfgVhvaEZpXV lGHmM2tDF4If1/FWME5rtspNq2CsQMp7TplUMZ60rjGwhB782aMqwj9Nm/5BT65cBSc8 Hh+MW9ZSmoPuYKBOvc0622GN74rNP5teJ1HOxptLU4Sv/Qlkel5zI/JgnWdxb1Bvukcl z0gjLzTw4V2yVdzvXB9M3R/PTdu+83sYJJyn97G7jyBTYDwRmnlKPUET79pFHoWFvDlL cBVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d24si772351edq.199.2020.04.23.00.53.29; Thu, 23 Apr 2020 00:53:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727007AbgDWHto (ORCPT + 99 others); Thu, 23 Apr 2020 03:49:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbgDWHtn (ORCPT ); Thu, 23 Apr 2020 03:49:43 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B320C03C1AB; Thu, 23 Apr 2020 00:49:43 -0700 (PDT) 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 1jRWc1-0008JE-O1; Thu, 23 Apr 2020 09:49:33 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id 5293D1C0450; Thu, 23 Apr 2020 09:49:33 +0200 (CEST) Date: Thu, 23 Apr 2020 07:49:32 -0000 From: "tip-bot2 for Ingo Molnar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool: Rename elf_read() to elf_open_read() Cc: Josh Poimboeuf , Ingo Molnar , Borislav Petkov , Linus Torvalds , Peter Zijlstra , Sami Tolvanen , Thomas Gleixner , x86 , LKML In-Reply-To: <20200422103205.61900-3-mingo@kernel.org> References: <20200422103205.61900-3-mingo@kernel.org> MIME-Version: 1.0 Message-ID: <158762817276.28353.6504307167044928918.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 objtool/core branch of tip: Commit-ID: bc359ff2f6f3e8a9df38c39017e269bc442357c7 Gitweb: https://git.kernel.org/tip/bc359ff2f6f3e8a9df38c39017e269bc442357c7 Author: Ingo Molnar AuthorDate: Wed, 22 Apr 2020 12:32:04 +02:00 Committer: Ingo Molnar CommitterDate: Thu, 23 Apr 2020 08:34:18 +02:00 objtool: Rename elf_read() to elf_open_read() 'struct elf *' handling is an open/close paradigm, make sure the naming matches that: elf_open_read() elf_write() elf_close() Acked-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Cc: Borislav Petkov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Sami Tolvanen Cc: Thomas Gleixner Link: https://lore.kernel.org/r/20200422103205.61900-3-mingo@kernel.org --- tools/objtool/check.c | 2 +- tools/objtool/elf.c | 2 +- tools/objtool/elf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index f2a8427..12e2aea 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -2614,7 +2614,7 @@ int check(const char *_objname, bool orc) objname = _objname; - file.elf = elf_read(objname, orc ? O_RDWR : O_RDONLY); + file.elf = elf_open_read(objname, orc ? O_RDWR : O_RDONLY); if (!file.elf) return 1; diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index fab5534..453b723 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -542,7 +542,7 @@ static int read_relas(struct elf *elf) return 0; } -struct elf *elf_read(const char *name, int flags) +struct elf *elf_open_read(const char *name, int flags) { struct elf *elf; Elf_Cmd cmd; diff --git a/tools/objtool/elf.h b/tools/objtool/elf.h index a55bcde..5e76ac3 100644 --- a/tools/objtool/elf.h +++ b/tools/objtool/elf.h @@ -113,7 +113,7 @@ static inline u32 rela_hash(struct rela *rela) return sec_offset_hash(rela->sec, rela->offset); } -struct elf *elf_read(const char *name, int flags); +struct elf *elf_open_read(const char *name, int flags); 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); void elf_add_rela(struct elf *elf, struct rela *rela);