From patchwork Tue Jun 12 17:52:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Gorinov X-Patchwork-Id: 928442 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 414yNY68wGz9s2g for ; Wed, 13 Jun 2018 04:00:45 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 93299C21D83; Tue, 12 Jun 2018 18:00:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 7CB46C21DD4; Tue, 12 Jun 2018 17:59:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BEE29C21D65; Tue, 12 Jun 2018 17:59:31 +0000 (UTC) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lists.denx.de (Postfix) with ESMTPS id 514B2C21DB3 for ; Tue, 12 Jun 2018 17:59:27 +0000 (UTC) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Jun 2018 10:59:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,215,1526367600"; d="scan'208";a="63978976" Received: from dph9ls1.fm.intel.com (HELO intel.com) ([10.80.209.182]) by orsmga001.jf.intel.com with ESMTP; 12 Jun 2018 10:59:25 -0700 Date: Tue, 12 Jun 2018 10:52:42 -0700 From: Ivan Gorinov To: u-boot@lists.denx.de Message-ID: <11a676b108f09c2c0755a2237cc3234d636559c3.1528825347.git.ivan.gorinov@intel.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Cc: Heinrich Schuchardt , Alexander Graf , Andy Shevchenko Subject: [U-Boot] [PATCH v4 4/4] riscv: Remove unused _relocate arguments X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" EFI image handle and system table are not used in _relocate(). Signed-off-by: Ivan Gorinov --- arch/riscv/lib/reloc_riscv_efi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/riscv/lib/reloc_riscv_efi.c b/arch/riscv/lib/reloc_riscv_efi.c index 8b4b2b1..51b7520 100644 --- a/arch/riscv/lib/reloc_riscv_efi.c +++ b/arch/riscv/lib/reloc_riscv_efi.c @@ -50,8 +50,7 @@ #define ELF_R_TYPE ELF32_R_TYPE #endif -efi_status_t _relocate(long ldbase, Elf_Dyn *dyn, efi_handle_t image, - struct efi_system_table *systab) +efi_status_t _relocate(long ldbase, Elf_Dyn *dyn, efi_handle_t image) { long relsz = 0, relent = 0; Elf_Rela *rel = 0;