public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Vincent Stehlé" <vincent.stehle@arm.com>
To: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Tom Rini <trini@konsulko.com>,
	Jose Marinho <jose.marinho@arm.com>,
	u-boot@lists.denx.de
Subject: Re: [PATCH] efi_loader: fix ecpt size computation
Date: Wed, 11 Feb 2026 13:25:07 +0100	[thread overview]
Message-ID: <aYx1I0erSBYpNM2e@debian> (raw)
In-Reply-To: <b236ac3f-493e-452e-93ce-03c0fc73baf3@canonical.com>

On Wed, Feb 11, 2026 at 12:50:38PM +0100, Heinrich Schuchardt wrote:
> On 2/11/26 12:47, Vincent Stehlé wrote:
> > On Wed, Feb 11, 2026 at 10:56:30AM +0100, Heinrich Schuchardt wrote:
> > > On 2/11/26 10:33, Vincent Stehlé wrote:
(snip)
> > > > diff --git a/lib/efi_loader/efi_conformance.c b/lib/efi_loader/efi_conformance.c
> > > > index 2bae93a94bd..9768b5ae824 100644
> > > > --- a/lib/efi_loader/efi_conformance.c
> > > > +++ b/lib/efi_loader/efi_conformance.c
> > > > @@ -13,8 +13,12 @@
> > > >    #include <malloc.h>
> > > >    static const efi_guid_t efi_ecpt_guid = EFI_CONFORMANCE_PROFILES_TABLE_GUID;
> > > > -static const efi_guid_t efi_ebbr_2_1_guid =
> > > > -	EFI_CONFORMANCE_PROFILE_EBBR_2_1_GUID;
> > > > +
> > > > +static const efi_guid_t profiles[] = {
> > > 
> > > As profiles[] is not used outside efi_ecpt_register(), there is no need to
> > > make it a static variable.
> > 
> > I am not sure why a "global" symbol would be better than a static one, but if
> > you like this solution we could make the profiles[] array extern.
> 
> Sorry to not be clear. I wanted to suggest a local symbol.

Hi Heinrich,

The profiles[] array is "local" to the efi_conformance.c file already as it has
internal linkage, thanks to the static specifier. Is this the symbol name you
would like to prefix maybe?

	static const efi_guid_t efi_conformance_profiles[] = {
		...

Best regards,
Vincent.

> 
> Best regards
> 
> Heinrich

  reply	other threads:[~2026-02-11 12:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-11  9:33 [PATCH] efi_loader: fix ecpt size computation Vincent Stehlé
2026-02-11  9:56 ` Heinrich Schuchardt
2026-02-11 11:47   ` Vincent Stehlé
2026-02-11 11:50     ` Heinrich Schuchardt
2026-02-11 12:25       ` Vincent Stehlé [this message]
2026-02-12 14:40 ` [PATCH v2] " Vincent Stehlé
2026-02-15  7:30   ` Heinrich Schuchardt

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=aYx1I0erSBYpNM2e@debian \
    --to=vincent.stehle@arm.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=jose.marinho@arm.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox