All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] efi_loader: move struct efi_device_path to efi.h
Date: Mon, 20 Mar 2023 09:28:18 +0200	[thread overview]
Message-ID: <ZBgLEs9yd03ENIK2@hera> (raw)
In-Reply-To: <20230319075933.88229-1-heinrich.schuchardt@canonical.com>

Hi Heinrich,

On Sun, Mar 19, 2023 at 08:59:33AM +0100, Heinrich Schuchardt wrote:
> Avoid forward declaration of struct efi_device_path.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> ---
>  include/efi.h     | 13 ++++++++++++-
>  include/efi_api.h |  6 ------
>  2 files changed, 12 insertions(+), 7 deletions(-)
>
> diff --git a/include/efi.h b/include/efi.h
> index c3087d3da2..2f312da3cb 100644
> --- a/include/efi.h
> +++ b/include/efi.h
> @@ -52,7 +52,18 @@
>  #define EFI32_LOADER_SIGNATURE	"EL32"
>  #define EFI64_LOADER_SIGNATURE	"EL64"
>
> -struct efi_device_path;
> +/**
> + * struct efi_device_path - device path protocol
> + *
> + * @type:	device path type
> + * @sub_type:	device path sub-type
> + * @length:	length of the device path node including the header
> + */
> +struct efi_device_path {
> +	u8 type;
> +	u8 sub_type;
> +	u16 length;
> +} __packed;
>
>  /*
>   * The EFI spec defines the EFI_GUID as
> diff --git a/include/efi_api.h b/include/efi_api.h
> index 2d18d25a71..2969884280 100644
> --- a/include/efi_api.h
> +++ b/include/efi_api.h
> @@ -557,12 +557,6 @@ struct efi_loaded_image {
>  #  define DEVICE_PATH_SUB_TYPE_INSTANCE_END	0x01
>  #  define DEVICE_PATH_SUB_TYPE_END		0xff
>
> -struct efi_device_path {
> -	u8 type;
> -	u8 sub_type;
> -	u16 length;
> -} __packed;
> -
>  struct efi_mac_addr {
>  	u8 addr[32];
>  } __packed;
> --
> 2.39.2
>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>


      parent reply	other threads:[~2023-03-20  7:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-19  7:59 [PATCH 1/1] efi_loader: move struct efi_device_path to efi.h Heinrich Schuchardt
2023-03-19 19:29 ` Simon Glass
2023-03-20  7:28 ` Ilias Apalodimas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZBgLEs9yd03ENIK2@hera \
    --to=ilias.apalodimas@linaro.org \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.