From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA3DFC7619A for ; Wed, 5 Apr 2023 14:43:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8CC4985FAE; Wed, 5 Apr 2023 16:43:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 9A31B85F73; Wed, 5 Apr 2023 14:15:35 +0200 (CEST) Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 89D6E85F6F for ; Wed, 5 Apr 2023 14:15:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=tinylab.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng@tinylab.org X-QQ-mid: bizesmtp71t1680696923ts4bkwyj Received: from ubuntu.. ( [111.196.129.125]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 05 Apr 2023 20:15:22 +0800 (CST) X-QQ-SSF: 01200000002000D0F000B00A0000000 X-QQ-FEAT: +ynUkgUhZJlfN5RChFSQi9VnQgsfA1bad4fe5A3uP/fQWWWkTeo4rFD1TIBRX lWteSFi7lpi5tqh9zJanyEZRVO2q5WRc6JA0+2Z8yd6iSEn7qpGlm4F/t1Bci582yqZZvKH HvbmiOxpgNZ2N8gIzy3NqSc1cm4dygSeyDx6oj0Qr9LbdG6bm6EPiacHB7tcQdL2tWohgKP OgYcRds0A5vFbAvR2ebhE3SFjODEh9R5sBPl9p5O1oqWZv9yUw7ZSdZcgoXlAv615zVnolL VU2QVz4XqZL67FqD9SQdBpRjwemo2j1i4388MRvzL4eJxxdcCKwwtjP5w3FNHT7M5CfHPXo 46wtJ/AthsPToNoUmQY+Kn/tgzVYqSPCW+ukZlnoaL5KBMNlQs= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 4566917642589986615 From: Bin Meng To: Heinrich Schuchardt , Ilias Apalodimas , u-boot@lists.denx.de Subject: [PATCH 2/5] efi: selftest: Make load_file() and load_file2() static Date: Wed, 5 Apr 2023 20:15:16 +0800 Message-Id: <20230405121519.778846-2-bmeng@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230405121519.778846-1-bmeng@tinylab.org> References: <20230405121519.778846-1-bmeng@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvr:qybglogicsvr3 X-Mailman-Approved-At: Wed, 05 Apr 2023 16:43:25 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean load_file() and load_file2() are only referenced in efi_selftest_load_file.c Signed-off-by: Bin Meng --- lib/efi_selftest/efi_selftest_load_file.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/efi_selftest/efi_selftest_load_file.c b/lib/efi_selftest/efi_selftest_load_file.c index 8784a76172..14df761172 100644 --- a/lib/efi_selftest/efi_selftest_load_file.c +++ b/lib/efi_selftest/efi_selftest_load_file.c @@ -206,11 +206,11 @@ static efi_status_t decompress(u8 **image) * @buffer_size: (required) buffer size * @buffer: buffer to which the file is to be loaded */ -efi_status_t EFIAPI load_file(struct efi_load_file_protocol *this, - struct efi_device_path *file_path, - bool boot_policy, - efi_uintn_t *buffer_size, - void *buffer) +static efi_status_t EFIAPI load_file(struct efi_load_file_protocol *this, + struct efi_device_path *file_path, + bool boot_policy, + efi_uintn_t *buffer_size, + void *buffer) { ++load_file_call_count; if (memcmp(file_path, dp_lf_file_remainder, @@ -243,11 +243,11 @@ efi_status_t EFIAPI load_file(struct efi_load_file_protocol *this, * @buffer_size: (required) buffer size * @buffer: buffer to which the file is to be loaded */ -efi_status_t EFIAPI load_file2(struct efi_load_file_protocol *this, - struct efi_device_path *file_path, - bool boot_policy, - efi_uintn_t *buffer_size, - void *buffer) +static efi_status_t EFIAPI load_file2(struct efi_load_file_protocol *this, + struct efi_device_path *file_path, + bool boot_policy, + efi_uintn_t *buffer_size, + void *buffer) { ++load_file2_call_count; if (memcmp(file_path, dp_lf2_file_remainder, -- 2.34.1