From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.groups.io with SMTP id smtpd.web09.17890.1606476703833086616 for ; Fri, 27 Nov 2020 03:31:44 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@nuviainc-com.20150623.gappssmtp.com header.s=20150623 header.b=QVw0zJLu; spf=pass (domain: nuviainc.com, ip: 209.85.128.65, mailfrom: leif@nuviainc.com) Received: by mail-wm1-f65.google.com with SMTP id f190so3203299wme.1 for ; Fri, 27 Nov 2020 03:31:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuviainc-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MMVo6t/Sj1u7aiu783dS5SkpwPSvR25iT9sIgMh4i7g=; b=QVw0zJLuK3XVwr4Wuew+kOjpkp5vkbRzhtrGkRcUPdbzxe39h8CjUSXoeH7d20awpo IK7FghhXQLZiPByjINrmvY0UKMj5A+oWkdtNX3C15CKVarkE3+zNMzgcemYU/yiZPP9L j1rxI6txn0zHsZDfY6u20PWp3JzJiNdkj7XwuU6U2XZzzjXyJ7Px9b99zCkhMcNsTuwh RwggCiHLvDYmPPkUj5Lg9jqmtLypi87SEKDfnBThCngtoRgUsOiKYMBJZt0qb/vj9NcT tQ6jSm5y3/RGohqGqJTKv6q7KauCUTjlN4xQaRianY0EgNuOPC6415O++Js/GvI/zp6t uDTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MMVo6t/Sj1u7aiu783dS5SkpwPSvR25iT9sIgMh4i7g=; b=e0q7dfFvJqaSjW2m5XpSefKNcgI6uK2Z1fLFC33i7ISBpwKRDXqXE/KcyjMuU1/hpr 0s+pHf9kdguU5fF2Hc9j2UQa1Jq9fHMfmOH40oylUQ24fLNnwyzmDqWUOjgfeY6Z//KZ kiZJ1cjz/7parhuoKYpj45ski4K6+BPYVrVxHyxR6YccShf1/m9gPWCeZU51vJm9zK2i /+TJIKRkleHWRsiRssS2QRkZm61FBYAQjr2l6zq+KMTykTQosmrsOsV3NypQs6dGjpou CWRmc5JZJhysPB98hg4H7AtQkKp4aUcPTP3F2hyIg2Y5DCR0LmK5dcDuEpoS2EkL3mJp 0p5A== X-Gm-Message-State: AOAM531+qsCVoAHnPgdNCzOoflGZP8tiZSA5vTwd4JpqyeY7WIgH1Egw vmX6IDc9E75fynONGLZbw0vVWz63cWoFNW3Z58/ELZ3ObunafEMHihAAV9/UwWF93J4h2qDLEJ0 jAfb7LuygvcrduCfG/31FSlMG8aY7V+EDK5RTh/DzFfTYC9I2T0GLAtIAXqYWLPwjN7V7 X-Google-Smtp-Source: ABdhPJxSDmwpGsAHOsdX/WWxB3VrQO1GzhlLyEFRP/kthKw1qA5f1gV5Sktt+AmpqJJCH4U6T/vVow== X-Received: by 2002:a1c:9ecf:: with SMTP id h198mr8495978wme.104.1606476702136; Fri, 27 Nov 2020 03:31:42 -0800 (PST) Return-Path: Received: from vanye.hemma.eciton.net (cpc1-cmbg19-2-0-cust915.5-4.cable.virginm.net. [82.27.183.148]) by smtp.gmail.com with ESMTPSA id x9sm7022526wru.55.2020.11.27.03.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Nov 2020 03:31:41 -0800 (PST) From: "Leif Lindholm" To: devel@edk2.groups.io Cc: Ard Biesheuvel Subject: [PATCH edk2-platforms 06/17] Silicon/Socionext: fix unused variable error NorFlashFvb Date: Fri, 27 Nov 2020 11:31:40 +0000 Message-Id: <20201127113140.6904-1-leif@nuviainc.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Leif Lindholm --- 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 | -- 2.20.1