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 176E6C43334 for ; Mon, 11 Jul 2022 11:33:31 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 596D0832DA; Mon, 11 Jul 2022 13:33:29 +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="hBUCiUFg"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0B00482068; Mon, 11 Jul 2022 13:33:27 +0200 (CEST) Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (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 B5EC383EF2 for ; Mon, 11 Jul 2022 13:33:23 +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-yb1-xb2a.google.com with SMTP id y195so8272406yby.0 for ; Mon, 11 Jul 2022 04:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=F7zRrNEI1k4Tm1Ao76vt02RKW2mt7hs1bkxyzNTfw6E=; b=hBUCiUFg4QAlZPIKyU8usFEfDHEjfl4QUPwdOViCa9D649Nc1Ip2S9INLMYTMqxmJt ZKabriNtMB1Qp7vifchHnVmk2MoqcxYgFzsZJP2uA4zf9WNKelHAU7w7+tQtsNFzQKLL 2D7KDMJcQQ+VumM+8sUxXAOj12/JCPYFWK6eN8JTOJSbRR6xPl/WmmSYo7dD+wspfzvR +j4H9HY7Y3q/WLvssjsCnd21p8QKy/rkhvtVPrBzUllkYtqSZTdEbleZdKe3SLNQXw2x TMc4CY2xbimNR64hcn9LqVl8Pba3BShxlmcZnCDy8Kl7l9SGrqzxI02zEUtYd80LZwI9 RUxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=F7zRrNEI1k4Tm1Ao76vt02RKW2mt7hs1bkxyzNTfw6E=; b=mlOHVCXOKSPoAPLA3Q5mGc5rqXwnIqKRvhAz8KpRnaRLFwHrk+KFwRpgfcOXYiWsMx 3BqE/HmMPSj8WJLHFzF6S/rHa7wyndX7UrtUdd/tPWktY/Af+jX0khPW4+8xvFu1t9OU jfCiXbp9KzWBT4sN0G/7GM3xMTPTHzymG8pNubpEHwfX5o1Ia2DoZe7+2m0dnimCo/hS KFHOH30tbRJc/E99WaX+1KNjn6R8R/8pFQoRHMvs/CxL8aIVOT15XYfaJMNDPpyqoJ5k DJqFkjaHyDtgZ1ZVOjeSrOo2lL7tJcDwV0UtwmbKMSrZ9Yr/BOn5D/9If9/g4SouOHLp jOtQ== X-Gm-Message-State: AJIora/+NkOFhtAtCfNhrr1rjbuw+U3hdP5BQqOSxDu7aZInbT5vF1UK RC7R8VpTEcbQV0yL4/QR4/EVQMulmZYdN4qBEvazpQ== X-Google-Smtp-Source: AGRyM1ue/6c9c1s8wO+vdmlOlyzvtg3A5bWvxcyejBWaLFWKAfQNNAnCQBslD+Av1JoTtxt99vPykVDuiSaLYLxEo9k= X-Received: by 2002:a25:ccd4:0:b0:66f:2e6e:51d8 with SMTP id l203-20020a25ccd4000000b0066f2e6e51d8mr4377729ybf.603.1657539202287; Mon, 11 Jul 2022 04:33:22 -0700 (PDT) MIME-Version: 1.0 References: <20220619045607.1669-1-masahisa.kojima@linaro.org> <20220619045607.1669-2-masahisa.kojima@linaro.org> In-Reply-To: From: Ilias Apalodimas Date: Mon, 11 Jul 2022 14:32:46 +0300 Message-ID: Subject: Re: [PATCH v8 1/9] efi_loader: expose END device path node To: Heinrich Schuchardt Cc: Masahisa Kojima , Simon Glass , Takahiro Akashi , Francois Ozog , Mark Kettenis , u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" 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.6 at phobos.denx.de X-Virus-Status: Clean On Sun, 10 Jul 2022 at 12:10, Heinrich Schuchardt wrote: > > On 6/19/22 06:55, Masahisa Kojima wrote: > > This commit exposes the END device path node. > > > > Signed-off-by: Masahisa Kojima > > Reviewed-by: Heinrich Schuchardt > > > --- > > No change in v8 > > > > Newly created in v7 > > > > include/efi_loader.h | 3 +++ > > lib/efi_loader/efi_device_path.c | 2 +- > > 2 files changed, 4 insertions(+), 1 deletion(-) > > > > diff --git a/include/efi_loader.h b/include/efi_loader.h > > index f6651e2c60..c6df29993c 100644 > > --- a/include/efi_loader.h > > +++ b/include/efi_loader.h > > @@ -798,6 +798,9 @@ ssize_t efi_dp_check_length(const struct efi_device_path *dp, > > (((_dp)->type == DEVICE_PATH_TYPE_##_type) && \ > > ((_dp)->sub_type == DEVICE_PATH_SUB_TYPE_##_subtype)) > > > > +/* template END node: */ > > +extern const struct efi_device_path END; > > + > > /* Indicate supported runtime services */ > > efi_status_t efi_init_runtime_supported(void); > > > > diff --git a/lib/efi_loader/efi_device_path.c b/lib/efi_loader/efi_device_path.c > > index 50a988c561..4798cec622 100644 > > --- a/lib/efi_loader/efi_device_path.c > > +++ b/lib/efi_loader/efi_device_path.c > > @@ -30,7 +30,7 @@ const efi_guid_t efi_guid_virtio_dev = U_BOOT_VIRTIO_DEV_GUID; > > #endif > > > > /* template END node: */ > > -static const struct efi_device_path END = { > > +const struct efi_device_path END = { > > .type = DEVICE_PATH_TYPE_END, > > .sub_type = DEVICE_PATH_SUB_TYPE_END, > > .length = sizeof(END), > Reviewed-by: Ilias Apalodimas