public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ard Biesheuvel" <ard.biesheuvel@arm.com>
To: Leif Lindholm <leif@nuviainc.com>, devel@edk2.groups.io
Subject: Re: [PATCH edk2-platforms 06/17] Silicon/Socionext: fix unused variable error NorFlashFvb
Date: Fri, 27 Nov 2020 12:42:46 +0100	[thread overview]
Message-ID: <fd474d1d-bc3d-04c6-4112-c5907962d0c5@arm.com> (raw)
In-Reply-To: <20201127113140.6904-1-leif@nuviainc.com>

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>

> ---
> 
> 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 |
> 


  reply	other threads:[~2020-11-27 11:42 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 [this message]
2020-11-27 12:55   ` Leif Lindholm

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=fd474d1d-bc3d-04c6-4112-c5907962d0c5@arm.com \
    --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