From: "Vincent Stehlé" <vincent.stehle@arm.com>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: u-boot@lists.denx.de,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2 2/4] efi_loader: export efi_ecpt_guid
Date: Mon, 9 Mar 2026 18:34:26 +0100 [thread overview]
Message-ID: <aa8Eoj5zDKs7P6W6@debian> (raw)
In-Reply-To: <bc95625a-54cf-479b-ac6e-acb316bc867b@gmx.de>
On Mon, Mar 09, 2026 at 05:40:12PM +0100, Heinrich Schuchardt wrote:
Hi Heinrich,
Thanks for the review; my comments below.
Best regards,
Vincent.
> On 3/9/26 17:36, Vincent Stehlé wrote:
> > Export the ECPT GUID, to prepare accessing it from more than one location.
> >
> > The C file containing the GUID is compiled only when CONFIG_EFI_ECPT is
> > set; gate the export accordingly.
> >
> > Signed-off-by: Vincent Stehlé <vincent.stehle@arm.com>
> > Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
> > Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>
> > Cc: Tom Rini <trini@konsulko.com>
> > ---
> >
> > (No change in v2; re-sending in the series for consistency only.)
> >
> > include/efi_loader.h | 4 ++++
> > lib/efi_loader/efi_conformance.c | 2 +-
> > 2 files changed, 5 insertions(+), 1 deletion(-)
> >
> > diff --git a/include/efi_loader.h b/include/efi_loader.h
> > index 3e70ac07055..0ebc80e0af0 100644
> > --- a/include/efi_loader.h
> > +++ b/include/efi_loader.h
> > @@ -387,6 +387,10 @@ extern const efi_guid_t efi_guid_capsule_report;
> > extern const efi_guid_t efi_guid_firmware_management_protocol;
> > /* GUID for the ESRT */
> > extern const efi_guid_t efi_esrt_guid;
> > +/* GUID for the ECPT */
> > +#if CONFIG_IS_ENABLED(EFI_ECPT)
>
> This #if looks superfluous. The include should compile without it.
This should compile indeed, but it will not always link as the efi_ecpt_guid
symbol is defined in lib/efi_loader/efi_conformance.c, which is compiled only
when CONFIG_EFI_ECPT is set.
I think gating the declaration serves two purposes here:
1. It should make the build fail at the point where the symbol is used, which
should be -arguably- easier to debug than having it fail at link-time.
2. It kind of documents the fact that the symbol is available only when
CONFIG_EFI_ECPT is set. This should avoid having to find the symbol in
efi_conformance.c and having to look into the corresponding Makefile to have
this information.
Besides, other symbols are already declared conditionally in efi_loader.h.
Anyway, if you insist I could send a v3 without the #if; just let me know.
>
> Best regards
>
> Heinrich
>
> > +extern const efi_guid_t efi_ecpt_guid;
> > +#endif
> > /* GUID of the SMBIOS table */
> > extern const efi_guid_t smbios_guid;
> > extern const efi_guid_t smbios3_guid;
> > diff --git a/lib/efi_loader/efi_conformance.c b/lib/efi_loader/efi_conformance.c
> > index 2d31800ccb8..470141af483 100644
> > --- a/lib/efi_loader/efi_conformance.c
> > +++ b/lib/efi_loader/efi_conformance.c
> > @@ -12,7 +12,7 @@
> > #include <efi_api.h>
> > #include <malloc.h>
> > -static const efi_guid_t efi_ecpt_guid = EFI_CONFORMANCE_PROFILES_TABLE_GUID;
> > +const efi_guid_t efi_ecpt_guid = EFI_CONFORMANCE_PROFILES_TABLE_GUID;
> > /**
> > * efi_ecpt_register() - Install the ECPT system table.
>
next prev parent reply other threads:[~2026-03-09 17:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-05 16:13 [PATCH 0/4] Add an efidebug ecpt command Vincent Stehlé
2026-03-05 16:13 ` [PATCH 1/4] lib: uuid: add EBBR 2.1 conformance profile GUID Vincent Stehlé
2026-03-09 12:19 ` Heinrich Schuchardt
2026-03-09 14:38 ` Vincent Stehlé
2026-03-05 16:13 ` [PATCH 2/4] efi_loader: export efi_ecpt_guid Vincent Stehlé
2026-03-09 12:26 ` Heinrich Schuchardt
2026-03-05 16:13 ` [PATCH 3/4] cmd: efidebug: add ecpt command Vincent Stehlé
2026-03-09 12:23 ` Heinrich Schuchardt
2026-03-09 15:02 ` Vincent Stehlé
2026-03-05 16:13 ` [PATCH 4/4] test/py: add ECPT tests Vincent Stehlé
2026-03-09 12:37 ` Heinrich Schuchardt
2026-03-09 16:36 ` [PATCH v2 1/4] lib: uuid: add EBBR 2.1 conformance profile GUID Vincent Stehlé
2026-03-09 16:38 ` Heinrich Schuchardt
2026-03-11 16:14 ` Ilias Apalodimas
2026-03-09 16:36 ` [PATCH v2 2/4] efi_loader: export efi_ecpt_guid Vincent Stehlé
2026-03-09 16:40 ` Heinrich Schuchardt
2026-03-09 17:34 ` Vincent Stehlé [this message]
2026-03-11 16:24 ` Ilias Apalodimas
2026-03-09 16:36 ` [PATCH v2 3/4] cmd: efidebug: add ecpt command Vincent Stehlé
2026-03-09 16:41 ` Heinrich Schuchardt
2026-03-11 16:20 ` Ilias Apalodimas
2026-03-09 16:36 ` [PATCH v2 4/4] test/py: add ECPT tests Vincent Stehlé
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=aa8Eoj5zDKs7P6W6@debian \
--to=vincent.stehle@arm.com \
--cc=ilias.apalodimas@linaro.org \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.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.