From patchwork Thu Oct 26 17:25:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 830839 X-Patchwork-Delegate: agraf@suse.de 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=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yNDZY2vH9z9t2c for ; Fri, 27 Oct 2017 04:31:33 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 15F42C21DA3; Thu, 26 Oct 2017 17:29:11 +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=FREEMAIL_FROM, RCVD_IN_MSPIKE_H2 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 F13E3C21C73; Thu, 26 Oct 2017 17:27:32 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 08E80C21DE8; Thu, 26 Oct 2017 17:27:24 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lists.denx.de (Postfix) with ESMTPS id 41E56C21DDA for ; Thu, 26 Oct 2017 17:27:19 +0000 (UTC) Received: from LT01.fritz.box ([94.114.42.150]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M2WgT-1dIYqa1ePV-00sKHY; Thu, 26 Oct 2017 19:26:25 +0200 From: Heinrich Schuchardt To: Alexander Graf Date: Thu, 26 Oct 2017 19:25:50 +0200 Message-Id: <20171026172559.26639-10-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171026172559.26639-1-xypron.glpk@gmx.de> References: <20171026172559.26639-1-xypron.glpk@gmx.de> X-Provags-ID: V03:K0:L5a8KBEGgDlLR4qUGYX7dhwBbY0ZpQYY34zOLnBcskZ3mm6lwQr 8aF46Re15/bRYlvFrzzs6Kh4z6DHmwpmPEec3K/QxYjxzgWgxN34Oaq3UhcuW6oDL35v3yF coRP1gkvYbjkIfT5hm4eRVLIyzVGcotBlV+y0sYBeZIKo+WkKGPLggh04E0iS77ZnIUkjE/ xQ5uD0O5eBELiCn/RwMzw== X-UI-Out-Filterresults: notjunk:1; V01:K0:QIk0yMnKUgI=:8/7fSgA/pubRrWsT2c/nl2 lJgKts3aEr6x0SU7yXfcVhhiTZSdSv7FpPjA4qy42zmiMCda8hJWyOHsVQajv2Soad5cfw8gP jwosa494kBIZIAtDqT59dMG9ilPckh1HuGjAu5MOQ2X8l1XLgWQ6L8eL3JXDX1JWH/cPl1weR LQOj+OvvPaZwLVl2H6j4VfZfAfmo/AjNrZi4QuVwz5I2aVOEhXbp8iUQWKAD2pjlEvMab3XEK mz/aQoAJkWvniIWPdzS791x7QbjBqCCDAeBX3bDVKr2z5Xo0RPDLawnkJKiwcHqVNF8L9oTKl DB1W3xKs8hpwBnGjYcKbFiUKJKi0bLXlebAPXI3PqqwlmM58bmiuoHq5Eib46dSY9xSHB15yr 9nz2LVTAps8NZzFWOO1TUvXCrrE5OrhyGTW8oi8DEy4daZwZltwiBS2zHd9jEIrbUDP8yZ69b UB4w6Ry71AKMr68uXenBj0f5s+vIMfqzvwoawzwp99EWpMw8Sune4zLCLB3WKqv2ZAlxTZv77 HsvsGAFPNELGImfSXiN532kq7HQdMWXxm7TFza8gji1PWag3gYdE/9L7exuwu21BMKCwl9Sjt 2BQ63RZsvu0VGYaMqtcNOj/hZxhQ/D2cQdhYEKlr2d41k/tfRtcgvqQjFN+ZP/r5OzsJbDhfH TTHXmC+asGbRhrWniun3GZhpxeZ1R+9CDj1C1eXVmbDxTfgnDTFN8bnV/vAb+uUN9EhJ80ZR/ O8PB+ETW0acSNYI1Hh4bzQieWjHCuEyt8qh3307nHQxwg5TeobGYRfo6+s3EJirn1rLsnELlD cSmbko17P9CSJGeN2wkhGTKPgehug== Cc: Heinrich Schuchardt , u-boot@lists.denx.de Subject: [U-Boot] [PATCH 09/18] efi_loader: argument of efi_search_obj should be const 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" The argument of efi_search_obj is not changed so it should be marked as const. Signed-off-by: Heinrich Schuchardt --- include/efi_loader.h | 2 +- lib/efi_loader/efi_boottime.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index f42dceaf51..a5aae1b87e 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -195,7 +195,7 @@ void efi_set_bootdev(const char *dev, const char *devnr, const char *path); /* Create handle */ efi_status_t efi_create_handle(void **handle); /* Call this to validate a handle and find the EFI object for it */ -struct efi_object *efi_search_obj(void *handle); +struct efi_object *efi_search_obj(const void *handle); /* Call this to create an event */ efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl, void (EFIAPI *notify_function) ( diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index a87e23cd8e..c96c2be7b9 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -690,7 +690,7 @@ static efi_status_t EFIAPI efi_check_event(struct efi_event *event) * @handle handle to find * @return EFI object */ -struct efi_object *efi_search_obj(void *handle) +struct efi_object *efi_search_obj(const void *handle) { struct efi_object *efiobj;