Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3567086rwb; Tue, 20 Sep 2022 01:18:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6RDxp9brZZORpnhPZjr1i+nf+X+Wq5ZBVUUV5NAOAOmXOIgI0em3LkCZ+wxhn5PpgTxwRG X-Received: by 2002:a17:902:d4c9:b0:178:1e39:31f7 with SMTP id o9-20020a170902d4c900b001781e3931f7mr3673132plg.142.1663661890638; Tue, 20 Sep 2022 01:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663661890; cv=none; d=google.com; s=arc-20160816; b=i14QiRLpg/XlKj2oDF7qRfjbA/XmwpkXzHxId38DjV63z+FIreFDpY7Q6m+GTJSsD7 /O9IRlrsQvO4u6eAttJokm72/irARQ1B1oZIIBlvaJ5R36OvjSpuryNCuUrMH1cR96K5 3Vuhdc0ce9C9QWkNiyMnS/Hj/NriWTARw4V5e3p7voDUHS7zGjU2DGNf87e2hfJxgu0Z y++3b4pcEq6zu1Bi+1oXN+10MCABM2vA6Bkf2HhlUHc0+tybEnFLnA/rdHOHfhWqJiph +46/A7UJAuN3pE9J5VZygv1G3rCwSwCnr+V84/hmAZXrJrcvqYwKEsVN8S9E4Uy0e5+s 9zdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=c0vHR7vNCD2WbACU3c1xtqnDVTQy81OG/a96fk8PXGw=; b=UehsS9NR7P4meyrW9HS9BNTfVlSQAOfHOM/I65UN2yd105JH0GMVXdJok4z/fo4DRn mf5eBtVCxjif9u7IddGxR8oyi6ipOsqsi1ftTLHTJie8KV/LufvL1P2MuLMcqEFZEQUH 1XpOrkFjVi9sgtoi4JZk07vIohqDCiXxWPA4UXsmflQibMJoqoAFyiVTOIicNtIxjNR0 mymGe07T2ypMIUHRVb2iQofObjfwIbR/nSs4Ge/s437gTXI1opYVDRsB3xsmaBmUsnsp i5HP9eEXh8IlHoV0gpRwWh/bGOz+a1hq3GJhR2mbZppMke0UTuK2Ee/I9Z5rcRS4SzH+ lWXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q6-20020a170902dac600b00177e7f3aefcsi1183202plx.488.2022.09.20.01.17.59; Tue, 20 Sep 2022 01:18:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbiITILv (ORCPT + 99 others); Tue, 20 Sep 2022 04:11:51 -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: 7BIT Content-Type: text/plain; charset=US-ASCII 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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 section *sec) return 0; } -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) } if (sec->base && - elf_rebuild_reloc_section(elf, sec)) { + elf_rebuild_reloc_section(sec)) { WARN("elf_rebuild_reloc_section"); return -1; } -- 2.25.1