[PATCH v8 1/9] efi_loader: expose END device path node

Ilias Apalodimas ilias.apalodimas at linaro.org
Mon Jul 11 13:32:46 CEST 2022


On Sun, 10 Jul 2022 at 12:10, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> On 6/19/22 06:55, Masahisa Kojima wrote:
> > This commit exposes the END device path node.
> >
> > Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>
>
> Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
>
> > ---
> > 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 <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list