From: "Leif Lindholm" <leif@nuviainc.com>
To: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: devel@edk2.groups.io
Subject: Re: [PATCH edk2-platforms 06/17] Silicon/Socionext: fix unused variable error NorFlashFvb
Date: Fri, 27 Nov 2020 12:55:55 +0000 [thread overview]
Message-ID: <20201127125555.GZ1664@vanye> (raw)
In-Reply-To: <fd474d1d-bc3d-04c6-4112-c5907962d0c5@arm.com>
On Fri, Nov 27, 2020 at 12:42:46 +0100, Ard Biesheuvel wrote:
> On 11/27/20 12:31 PM, Leif Lindholm wrote:
> > When building in NOOPT mode, SynQuacer/Drivers/Fip006Dxe/NorFlashFvb.c
> > fails to build with -Werror=unused-but-set-variable due to the Instance
> > variable being set from the This pointer but never actually referenced.
> >
> > Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> > Signed-off-by: Leif Lindholm <leif@nuviainc.com>
>
> Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Thanks!
Series pushed as 734fed7db671..abd92d65cf3b, with FV size patch at the
end as previously mentioned.
/
Leif
> > ---
> >
> > Submitting as a single additional patch rather than a full v2.
> > (Patch 17 is Ard's new one increasing the FV size for DeveloperBoxMm.)
> >
> > Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/NorFlashFvb.c | 3 ---
> > 1 file changed, 3 deletions(-)
> >
> > diff --git a/Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/NorFlashFvb.c b/Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/NorFlashFvb.c
> > index 387789fb9782..48774e955faf 100644
> > --- a/Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/NorFlashFvb.c
> > +++ b/Silicon/Socionext/SynQuacer/Drivers/Fip006Dxe/NorFlashFvb.c
> > @@ -209,9 +209,6 @@ FvbGetAttributes(
> > )
> > {
> > EFI_FVB_ATTRIBUTES_2 FlashFvbAttributes;
> > - NOR_FLASH_INSTANCE *Instance;
> > -
> > - Instance = INSTANCE_FROM_FVB_THIS(This);
> > FlashFvbAttributes = EFI_FVB2_READ_ENABLED_CAP | EFI_FVB2_READ_STATUS |
> > EFI_FVB2_WRITE_ENABLED_CAP | EFI_FVB2_WRITE_STATUS |
> >
>
prev parent reply other threads:[~2020-11-27 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-27 11:31 [PATCH edk2-platforms 06/17] Silicon/Socionext: fix unused variable error NorFlashFvb Leif Lindholm
2020-11-27 11:42 ` Ard Biesheuvel
2020-11-27 12:55 ` Leif Lindholm [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-list 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=20201127125555.GZ1664@vanye \
--to=devel@edk2.groups.io \
/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