From nobody Thu May 2 19:26:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+54828+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54828+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1582679278; cv=none; d=zohomail.com; s=zohoarc; b=JfjOJ3qJBBAQrdW1yI75XQrN+T6eyFDQppQlubkGg4UdfYG0ull2Z1/yJfhcOLMjXPwYg5GURVLZ37XDj1pHaoBDAnXMCISwzTwAkb5xWuHUCE/U6HoLpEzg7vUR/PNQ37dLscxwsmt89M3UjdXNwqHM/dSKYfVI6n+Xonjb9MY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582679278; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=FAkSdwPG7BIF9xEMa0w9dWe9Du+6IkXeGZQJESAL6NY=; b=HJQky5du6rIzyD5Bs+FY1EUY1tKV91ve7awT6yBq+WVgn2JmDaAjnA6yoxxe8ycNTPE0Yw271AFb+/1I2y0NnwvqZVGF6pfmv2PGOL7vIqOLLWdOvLcUQOy1mOwTzLSMrkFhJw8tdtu5EsU/MCEn+GWsdZZTBTQ6v2Cn85+3eAo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+54828+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1582679278598574.6599828967649; Tue, 25 Feb 2020 17:07:58 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id W22hYY1788612xhu32CGCjLC; Tue, 25 Feb 2020 17:07:57 -0800 X-Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web09.818.1582679276814082381 for ; Tue, 25 Feb 2020 17:07:56 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Feb 2020 17:07:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,486,1574150400"; d="scan'208";a="260891541" X-Received: from shwdeopenpsi787.ccr.corp.intel.com ([10.239.158.56]) by fmsmga004.fm.intel.com with ESMTP; 25 Feb 2020 17:07:55 -0800 From: "Siyuan, Fu" To: devel@edk2.groups.io Cc: Ray Ni , Rangasai V Chaganty Subject: [edk2-devel] [Patch] IntelSiliconPkg: Declare zero array explicitly to avoid compiler error. Date: Wed, 26 Feb 2020 09:07:53 +0800 Message-Id: <20200226010753.44716-1-siyuan.fu@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,siyuan.fu@intel.com X-Gm-Message-State: ILm2OWaSm087bh1LDqORPwfUx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1582679277; bh=qLIJUE8gt6EdT2a6AKYid5q5+f2PlSwpWc9oxNsrxhs=; h=Cc:Date:From:Reply-To:Subject:To; b=oUw7HK+S9lyG7YLZDdUCxawSTN3WyK9l6yhmwB0ewj1NRpI8ArGC84AD41QokgU2Pun +smRbhU26fJ1bejRPIbSnO+pZztA7S9EgEvv/HKM13zlKDENB4RZPwfIDFs+ILWpyJURc I21k5bVhp1mjxyo+tOTxUSGgrG2Y8fC4Kt0= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" This patch fixes a potential compiler error introduced by commit b0099a39bd since not all compiler can support empty array member. BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=3D2449 Cc: Ray Ni Cc: Rangasai V Chaganty Signed-off-by: Siyuan Fu Reviewed-by: Liming Gao Reviewed-by: Ray Ni Reviewed-by: Sai Chaganty --- .../Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfo= Hob.h b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h index d1a9d79a51..d887b39123 100644 --- a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h +++ b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h @@ -33,7 +33,7 @@ typedef struct { // An array with MicrocodeCount elements that stores // the shadowed microcode patch address in memory. // - UINT64 MicrocodeAddrInMemory[]; + UINT64 MicrocodeAddrInMemory[0]; // // A buffer which contains details about the storage information // specific to StorageType. --=20 2.19.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#54828): https://edk2.groups.io/g/devel/message/54828 Mute This Topic: https://groups.io/mt/71546083/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-