From patchwork Thu Nov 15 04:58:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 998077 X-Patchwork-Delegate: xypron.glpk@gmx.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=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="FnCEE9vZ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42wTcY5hmKz9s8F for ; Thu, 15 Nov 2018 15:57:17 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 69E9EC22466; Thu, 15 Nov 2018 04:56: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=RCVD_IN_MSPIKE_H2, 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 1200FC2222E; Thu, 15 Nov 2018 04:56:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C1DCEC2230E; Thu, 15 Nov 2018 04:56:08 +0000 (UTC) Received: from mail-yb1-f195.google.com (mail-yb1-f195.google.com [209.85.219.195]) by lists.denx.de (Postfix) with ESMTPS id 3C7FEC224BC for ; Thu, 15 Nov 2018 04:56:04 +0000 (UTC) Received: by mail-yb1-f195.google.com with SMTP id z2-v6so7899287ybj.2 for ; Wed, 14 Nov 2018 20:56:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OI5gh0nWF6I0YMQWT1smhvKgKU/mIhq5m46Ts4nuKQ4=; b=FnCEE9vZPYqfu2LMapj6NZ1BqlLC20C4qOLSPuj1VnmtMe2mwKT3akiyHYNFyQ0GJr JIbsrEM7o4kDBCdH69d9ckyVwfbJIMjgQflMKtXjAk7lfHzjP1H4R5TmYG8Kmd57f8zx mbedo+6RPdxAFkPTN07kNsh35AdGXG/4VSAJs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OI5gh0nWF6I0YMQWT1smhvKgKU/mIhq5m46Ts4nuKQ4=; b=gM2PvdKPSDN+ZD10OC3T+Av8iPeiKLdZFlEQE7TPef7YEmzf0Y0Q0DKNzhXhPu/uu0 MpVkoRixvczirlA8OGPU6VwnnKNk3fRToHpHTsdcrv2XhgrYnuysq+Jyr4SuiOWoEp4l LXHw02CAUNyA5fI0I2UvQoKcGoXTTdoMnluYYahly1q07WYcJkkbly2vcp+T4ipJhfao KtECLY7sQm308oCvbjJPFsSBaDMp7L7CU7BhB+QBMTNfEFc99Gwwn4UnmVeuPzYHie76 3qFF0mVlg5jzNZJcnWZCAXqK+fU73Dfm7RCtFc6EoLDFBu9sGKgx7ggYHA1QOrhUTE0h zi2A== X-Gm-Message-State: AGRZ1gIs0HuMTuW+V8qrPC0JwH88ofuVkk5sXGuUHM70S7TF0zkyBU0U UKBU/hKP+IoXRXNYz2Rzn+gVuQ== X-Google-Smtp-Source: AJdET5cw6TL8h2m/BBI4gYTSEiVY4TeXwX1o3IX+2rib9uUHIDkU84wlJD++0FKSP1MG/jU//sYWmg== X-Received: by 2002:a25:1c5:: with SMTP id 188-v6mr4410714ybb.374.1542257762957; Wed, 14 Nov 2018 20:56:02 -0800 (PST) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id x4-v6sm4572394ywe.105.2018.11.14.20.56.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Nov 2018 20:56:02 -0800 (PST) From: AKASHI Takahiro To: trini@konsulko.com, agraf@suse.de Date: Thu, 15 Nov 2018 13:58:08 +0900 Message-Id: <20181115045810.28736-2-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181115045810.28736-1-takahiro.akashi@linaro.org> References: <20181115045810.28736-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: xypron.glpk@gmx.de, u-boot@lists.denx.de Subject: [U-Boot] [PATCH v2 1/3] efi_loader: export efi_locate_handle() function 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" This function will be used later to implement efi_disk_update(). Signed-off-by: AKASHI Takahiro --- include/efi_loader.h | 4 ++++ lib/efi_loader/efi_boottime.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/efi_loader.h b/include/efi_loader.h index ce0f420b5004..5cc3bded03fa 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -318,6 +318,10 @@ efi_status_t efi_create_handle(efi_handle_t *handle); void efi_delete_handle(efi_handle_t obj); /* Call this to validate a handle and find the EFI object for it */ struct efi_object *efi_search_obj(const efi_handle_t handle); +/* locate handles */ +efi_status_t efi_locate_handle(enum efi_locate_search_type search_type, + const efi_guid_t *protocol, void *search_key, + efi_uintn_t *buffer_size, efi_handle_t *buffer); /* Find a protocol on a handle */ efi_status_t efi_search_protocol(const efi_handle_t handle, const efi_guid_t *protocol_guid, diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c index 8a43a5a84091..a3c56bbab552 100644 --- a/lib/efi_loader/efi_boottime.c +++ b/lib/efi_loader/efi_boottime.c @@ -1309,10 +1309,9 @@ static int efi_search(enum efi_locate_search_type search_type, * * Return: status code */ -static efi_status_t efi_locate_handle( - enum efi_locate_search_type search_type, - const efi_guid_t *protocol, void *search_key, - efi_uintn_t *buffer_size, efi_handle_t *buffer) +efi_status_t efi_locate_handle(enum efi_locate_search_type search_type, + const efi_guid_t *protocol, void *search_key, + efi_uintn_t *buffer_size, efi_handle_t *buffer) { struct efi_object *efiobj; efi_uintn_t size = 0;