From patchwork Thu Jun 22 08:49:03 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 106191 Delivered-To: patch@linaro.org Received: by 10.140.97.139 with SMTP id m11csp11255qge; Thu, 22 Jun 2017 01:49:29 -0700 (PDT) X-Received: by 10.80.176.3 with SMTP id i3mr1774770edd.65.1498121369436; Thu, 22 Jun 2017 01:49:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498121369; cv=none; d=google.com; s=arc-20160816; b=z0a5bj5PuHeqrhAYCZroCGkB7SQUeyak08sWOJ2z6CfUMwPW5GLbHmWaAz+OZN/Upi WEJFpUGthCLEVMjtubW+gM1p0LKSUtNa2+aNVjhd3dcHNRP8BoTTgMNGZ6JE2a/kd41G qV/a8EDVNAwvwduedW2+0gPSMqf308hILsuHzFr0eDQqbw5Zj/yCHJfZeXAF1khHALCO gOz/K3/lM3TjAvBE8UarYhJwiZ3c57/qLmuqgHAdPrkWUmnVvXNsxYEy0dn3dRV7Lj62 xr0DB2GxlZ78nwdQuFAB0t3C4wHapQVdPjWbFF0ASkZa++0FfQUjcvsPegE4IIwrz7br WL4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :dkim-filter:arc-authentication-results; bh=ACTrdzYTkxLizvgSJtSJK0AqOHJFEXdO0BbKYsSweYc=; b=e3mTJmfFwsZm6Gx1d4xOs1TQqc/HXHOYirab8Xd1vK0GPpWYYEg70t4033KjkYelIF 6D82dFB169FYrIXA4yOo3zTdh+DLqiJ9qtH6lDl743pPvOUH8hh5+ThA24TFYfHHP8ig 8WR2qHfZCmywHYPQ3dEJXofhcoKQziU3JqunlHutsom475PjR4djdIZ+zw7s18YUrJP0 UWAQCR/+toMDsetkKHQpJfiiVK6RfV53po5oaUdA0GQnfigwx01V37YkSURmPwk0Ld53 dezR/h7Zito4MegUfaDxbJAkJTA0CWWmjSUu3WdoCmbBk2FCPvNvRHXOcwc4nSdYrRcx brKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=SVmFVS88; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id b28si1160228eda.91.2017.06.22.01.49.29; Thu, 22 Jun 2017 01:49:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.b=SVmFVS88; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id EADFFC21CAD; Thu, 22 Jun 2017 08:49:26 +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=T_DKIM_INVALID 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 79058C21C68; Thu, 22 Jun 2017 08:49:24 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 350A6C21C68; Thu, 22 Jun 2017 08:49:23 +0000 (UTC) Received: from conuserg-08.nifty.com (conuserg-08.nifty.com [210.131.2.75]) by lists.denx.de (Postfix) with ESMTPS id 35045C21C4E for ; Thu, 22 Jun 2017 08:49:21 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-08.nifty.com with ESMTP id v5M8n6Wa005549; Thu, 22 Jun 2017 17:49:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-08.nifty.com v5M8n6Wa005549 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1498121346; bh=Ly+t77MCMZDUZ2vbQ5pdd2QOXwwiCgbugUZew6LPKJQ=; h=From:To:Cc:Subject:Date:From; b=SVmFVS88A5wuoiPjm3YFLimdfG3t4nKKR5Ozxcho/39IMeK4j9WHWoAYTR8twQMOb rOo3EXRlqSu/GnHu1pWsp1R+kghwbSSS2L7UMMfHmB9OhbGgo8i6OncIqoYpmYdX5c l4eBhEXJojXjTmMohzRsiwefQnEC8ix7Z5BPCyHdAkEtDkn40R0yQLUQTMrCf1p/aV 9Ig9VibWBKhq+6dJ6l+EcogIBi9ZRwvjRuJ3fkFCmyY1uQTJq6cDyQ1EdcBFvARPmA Wos4OqUF4JRyHR2roiB23HClv6B05n6UQ5uVXLpCQ3XbHg8nHymCgASINAm7emSa0x A24INfbQbXiPQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Thu, 22 Jun 2017 17:49:03 +0900 Message-Id: <1498121343-22067-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Subject: [U-Boot] [PATCH] efi_loader: add static to local functions 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: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" These are locally used in lib/efi_loader/efi_boottime.c Signed-off-by: Masahiro Yamada Reviewed-by: Bin Meng --- lib/efi_loader/efi_boottime.c | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 51080cbeed2f..ba4d30540b7b 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -104,9 +104,9 @@ static void EFIAPI efi_restore_tpl(unsigned long old_tpl) EFI_EXIT(efi_unsupported(__func__)); } -efi_status_t EFIAPI efi_allocate_pages_ext(int type, int memory_type, - unsigned long pages, - uint64_t *memory) +static efi_status_t EFIAPI efi_allocate_pages_ext(int type, int memory_type, + unsigned long pages, + uint64_t *memory) { efi_status_t r; @@ -115,7 +115,8 @@ efi_status_t EFIAPI efi_allocate_pages_ext(int type, int memory_type, return EFI_EXIT(r); } -efi_status_t EFIAPI efi_free_pages_ext(uint64_t memory, unsigned long pages) +static efi_status_t EFIAPI efi_free_pages_ext(uint64_t memory, + unsigned long pages) { efi_status_t r; @@ -124,11 +125,12 @@ efi_status_t EFIAPI efi_free_pages_ext(uint64_t memory, unsigned long pages) return EFI_EXIT(r); } -efi_status_t EFIAPI efi_get_memory_map_ext(unsigned long *memory_map_size, - struct efi_mem_desc *memory_map, - unsigned long *map_key, - unsigned long *descriptor_size, - uint32_t *descriptor_version) +static efi_status_t EFIAPI efi_get_memory_map_ext( + unsigned long *memory_map_size, + struct efi_mem_desc *memory_map, + unsigned long *map_key, + unsigned long *descriptor_size, + uint32_t *descriptor_version) { efi_status_t r;