From nobody Thu Apr 2 22:58:06 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 51487C54EE9 for ; Tue, 20 Sep 2022 08:11:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229503AbiITILx (ORCPT ); Tue, 20 Sep 2022 04:11:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41782 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231341AbiITILM (ORCPT ); Tue, 20 Sep 2022 04:11:12 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12727642DB for ; Tue, 20 Sep 2022 01:07:21 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MWvCy4KsnzMn5k; Tue, 20 Sep 2022 16:02:38 +0800 (CST) Received: from huawei.com (10.175.103.91) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 20 Sep 2022 16:07:19 +0800 From: Zeng Heng To: , , CC: , , Subject: [PATCH -next 1/3] tools: objtool: fix unused parameter warning in elf.c Date: Tue, 20 Sep 2022 16:14:14 +0800 Message-ID: <20220920081416.3570803-2-zengheng4@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220920081416.3570803-1-zengheng4@huawei.com> References: <20220920081416.3570803-1-zengheng4@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To dggpemm500022.china.huawei.com (7.185.36.162) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Remove unused function parameter of internal function 'elf_rebuild_reloc_section'. There is no logic changes. Signed-off-by: Zeng Heng --- tools/objtool/elf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/objtool/elf.c b/tools/objtool/elf.c index c25e957c1e52..356af4d16d3f 100644 --- a/tools/objtool/elf.c +++ b/tools/objtool/elf.c @@ -1224,7 +1224,7 @@ static int elf_rebuild_rela_reloc_section(struct sect= ion *sec) return 0; } =20 -static int elf_rebuild_reloc_section(struct elf *elf, struct section *sec) +static int elf_rebuild_reloc_section(struct section *sec) { switch (sec->sh.sh_type) { case SHT_REL: return elf_rebuild_rel_reloc_section(sec); @@ -1302,7 +1302,7 @@ int elf_write(struct elf *elf) } =20 if (sec->base && - elf_rebuild_reloc_section(elf, sec)) { + elf_rebuild_reloc_section(sec)) { WARN("elf_rebuild_reloc_section"); return -1; } --=20 2.25.1