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 D7468C433F5 for ; Fri, 1 Apr 2022 05:43:37 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5243484219; Fri, 1 Apr 2022 07:43:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="wHeIpU5b"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25FEB84259; Fri, 1 Apr 2022 07:43:33 +0200 (CEST) Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B3F6A83B0D for ; Fri, 1 Apr 2022 07:43:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ilias.apalodimas@linaro.org Received: by mail-wr1-x42f.google.com with SMTP id u16so2608897wru.4 for ; Thu, 31 Mar 2022 22:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=yBZAeAJXRgQjIth1yuKwZDff6t+yY7wOHIPnGz37ugE=; b=wHeIpU5b/H+3cl4Zy2YA+lKacJwj+j09+QW3HENhYCtdxho4UfogSE7S4mUPkFkt+4 qi4Q7I8WSZSeoC5knynnOT+FhroCssOpVqcXBhgAPdt8Z8n9LBXCFumdN91Gitz72+Z1 PBi3AY29GUD/DnUKsvJPYOGrKkmB/9l5IxetdUhSN4JSJcUn2gxgZS9NOtRcvOn5PHsU TTQjAH6nD7kjHB76U9q7+RBMEsvAd2MoAdoqZ4G44+w/MBVo933gOlPslqzz0/09MSBk 9YRPxWY7uSOcwh4wgOt/xSE7fL5rUuYkNEYmsKHNBjPdUexLOqTxR+7mhz22wthgIESx Uarw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=yBZAeAJXRgQjIth1yuKwZDff6t+yY7wOHIPnGz37ugE=; b=mXhA+QOZUwEkFqIYqh3CABXD20E2fa4NxYJDP7kuTm7YlQcoMfcGS0x6cheoLNiCMj Y+ok5wG8ribRH0sPX/T3YZMHFDr+G0jdjy1EGgzS931t0+ircwgn05oID14jUCAyfVO2 +213dr5j6z2kZna2z5PP1QZQqdLiG1mFxcoZf9LT7A36I9qAh+pJObh/7O8dmRrsAqXq BQ1UH5E/YdsrHI2w00sg4MDFvPORmLFKt715ijhlT3m7pIGbHpyjzTcS6Oj19vqavq8k JbKiOyGb4xBaOOjSvRBgpBfOz3Jk9ZhbZtJEbDc551GSqXU9frAiFxE3XXg3BI0sp9OZ p1YA== X-Gm-Message-State: AOAM531jYukRx2yZO8av9oFPIwcjVbY80Ue9W7ozEzu8AiKyEEJ4cAOT frvn3X4xnYiTGg1ktYOMnAEfxQ== X-Google-Smtp-Source: ABdhPJyIgfEkpWW1rwNjHYAI8OfQVJQx6Z+BSbMmoFgTIJ+2he/S45NQyrxaski1PR9EzRwsM2fkkA== X-Received: by 2002:a05:6000:144c:b0:204:1cc6:7194 with SMTP id v12-20020a056000144c00b002041cc67194mr6367070wrx.255.1648791808231; Thu, 31 Mar 2022 22:43:28 -0700 (PDT) Received: from hades (athedsl-4461682.home.otenet.gr. [94.71.4.98]) by smtp.gmail.com with ESMTPSA id az19-20020a05600c601300b0038cadf3aa69sm13417341wmb.36.2022.03.31.22.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Mar 2022 22:43:27 -0700 (PDT) Date: Fri, 1 Apr 2022 08:43:25 +0300 From: Ilias Apalodimas To: Masahisa Kojima Cc: u-boot@lists.denx.de, Heinrich Schuchardt , Simon Glass , Takahiro Akashi , Francois Ozog , Mark Kettenis Subject: Re: [PATCH v4 05/11] efi_loader: export efi_locate_device_handle() Message-ID: References: <20220324135443.1571-1-masahisa.kojima@linaro.org> <20220324135443.1571-6-masahisa.kojima@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220324135443.1571-6-masahisa.kojima@linaro.org> 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.5 at phobos.denx.de X-Virus-Status: Clean On Thu, Mar 24, 2022 at 10:54:37PM +0900, Masahisa Kojima wrote: > From: AKASHI Takahiro > > This function will be used in the next commit where some behavior > of EFI boot manager will be expanded. > > Signed-off-by: AKASHI Takahiro > --- > No changes from original version > > 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 af36639ec6..ce22660d5b 100644 > --- a/include/efi_loader.h > +++ b/include/efi_loader.h > @@ -593,6 +593,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 device_path handle */ > +efi_status_t EFIAPI efi_locate_device_path(const efi_guid_t *protocol, > + struct efi_device_path **device_path, > + efi_handle_t *device); > /* Load image */ > efi_status_t EFIAPI efi_load_image(bool boot_policy, > efi_handle_t parent_image, > diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c > index 5bcb8253ed..4da64b5d29 100644 > --- a/lib/efi_loader/efi_boottime.c > +++ b/lib/efi_loader/efi_boottime.c > @@ -1799,10 +1799,9 @@ failure: > * > * Return: status code > */ > -static efi_status_t EFIAPI efi_locate_device_path( > - const efi_guid_t *protocol, > - struct efi_device_path **device_path, > - efi_handle_t *device) > +efi_status_t EFIAPI efi_locate_device_path(const efi_guid_t *protocol, > + struct efi_device_path **device_path, > + efi_handle_t *device) > { > struct efi_device_path *dp; > size_t i; > -- > 2.17.1 > Reviewed-by: Ilias Apalodimas