From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=gbzhAAnz; spf=pass (domain: arm.com, ip: 40.107.6.41, mailfrom: sami.mujawar@arm.com) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (EUR04-DB3-obe.outbound.protection.outlook.com [40.107.6.41]) by groups.io with SMTP; Fri, 23 Aug 2019 03:57:18 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BdyL+DKly/xrpkl6CbrCPa0Kt6jsuqTPZeXupGnfhPQ=; b=gbzhAAnzAyMQYKlNbPqGOrzRK07bn1KyZpQLXJerjEc0ePEm7FUQ4DgEZgD/Q+ZjzRgnx842Mz2zzIuLt2OEJdRA0wtMZWaaBpQg8gZKxi3uzXaVqGq+YIje/n5ynzOmGAEw5ltPGp6b8O15ZZVQUWTgF8XE+kqtCbGTvihJvTM= Received: from DB6PR0801CA0065.eurprd08.prod.outlook.com (2603:10a6:4:2b::33) by VE1PR08MB4958.eurprd08.prod.outlook.com (2603:10a6:803:110::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.20; Fri, 23 Aug 2019 10:57:13 +0000 Received: from DB5EUR03FT057.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::205) by DB6PR0801CA0065.outlook.office365.com (2603:10a6:4:2b::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2199.14 via Frontend Transport; Fri, 23 Aug 2019 10:57:13 +0000 Authentication-Results: spf=temperror (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT057.mail.protection.outlook.com (10.152.20.235) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2199.13 via Frontend Transport; Fri, 23 Aug 2019 10:57:12 +0000 Received: ("Tessian outbound 3aa685aedf5f:v27"); Fri, 23 Aug 2019 10:57:10 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: a75fd91cea5c39a5 X-CR-MTA-TID: 64aa7808 Received: from a8ce5c5d62ca.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.8.55]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 8D6C190E-CEAD-4008-A5E4-A90002F51AC3.1; Fri, 23 Aug 2019 10:57:05 +0000 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-am5eur03lp2055.outbound.protection.outlook.com [104.47.8.55]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id a8ce5c5d62ca.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 23 Aug 2019 10:57:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CPYqBU2eiUdvHD5SgPVfXuRdJD4fbWuc7msQ5Ve+gMdfeDijwK3i/yv6+CxfBRWXgd19sZbM061OL+w7iC4V9ynOugI1xCLc42/blv5YH8ho1nOCWIsoZJybGZJdQ+VU51sGFnDTMeFGEgcR9OGX+8xaJXVoppGjVqFy+90SlhNYW5crBfnzsm14moRpoZbY9yNnNU3IzNcRVfPKbt+vfVDSVgbQ0Oja/3W91iusnp1SW973CmjFCmJ2oxiK5If5wxrt0/Z5HEzV5ttsZ8EpS7wlmgOWmLGwzikZMzOC21slDjDm3WBM3erqRJ0/dgJgfY07edPU86K3N3W9P5Koww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BdyL+DKly/xrpkl6CbrCPa0Kt6jsuqTPZeXupGnfhPQ=; b=N2wctfXQpD0hKfilX1Icnul/Dnh94uEAp7bHCTA9tMveq1qpzTFFDX7vIo1/uXd7dfmL6Lp1ZiH5XBw21Hxu5MxAHJb6+8jGsgyzP4bjoUfe/CR2WFW6ncXp/MepR2o4a/i3Fb02M9VvjaMMukEY/UnL90h8AWHIxHWPhZBuPPBud2Aprzd9XV/ZRsVmb7M6j9Or8WERytVIt6Cp7gyReCSKgqIqjosvY7FmBQhV23MiW5h8bMHkWnt2KRhbDMXLNXu/ERyV0StnZZhEiiRh4xc/7RJgpx2POyFmSyeJjD4UiAELqAWpzkCjmJrtqLgF/FWUqxKwoUFWNZRUKJ2xPw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=temperror (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=temperror action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BdyL+DKly/xrpkl6CbrCPa0Kt6jsuqTPZeXupGnfhPQ=; b=gbzhAAnzAyMQYKlNbPqGOrzRK07bn1KyZpQLXJerjEc0ePEm7FUQ4DgEZgD/Q+ZjzRgnx842Mz2zzIuLt2OEJdRA0wtMZWaaBpQg8gZKxi3uzXaVqGq+YIje/n5ynzOmGAEw5ltPGp6b8O15ZZVQUWTgF8XE+kqtCbGTvihJvTM= Received: from VI1PR0802CA0032.eurprd08.prod.outlook.com (2603:10a6:800:a9::18) by VI1PR0802MB2608.eurprd08.prod.outlook.com (2603:10a6:800:ae::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.18; Fri, 23 Aug 2019 10:56:59 +0000 Received: from AM5EUR03FT033.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::205) by VI1PR0802CA0032.outlook.office365.com (2603:10a6:800:a9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.15 via Frontend Transport; Fri, 23 Aug 2019 10:56:59 +0000 Authentication-Results-Original: spf=temperror (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT033.mail.protection.outlook.com (10.152.16.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2199.13 via Frontend Transport; Fri, 23 Aug 2019 10:56:58 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Fri, 23 Aug 2019 10:56:22 +0000 Received: from E107187.Arm.com (10.1.195.55) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Fri, 23 Aug 2019 10:56:22 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , Subject: [PATCH v1 08/19] DynamicTablesPkg: Fix ACPI table rev field width Date: Fri, 23 Aug 2019 11:55:28 +0100 Message-ID: <20190823105539.13260-9-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20190823105539.13260-1-sami.mujawar@arm.com> References: <20190823105539.13260-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;IPV:NLI;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(396003)(346002)(136003)(376002)(39860400002)(2980300002)(189003)(199004)(426003)(478600001)(47776003)(51416003)(53416004)(86362001)(81156014)(76176011)(2351001)(8936002)(50226002)(8676002)(81166006)(7696005)(70206006)(53936002)(186003)(305945005)(16586007)(26005)(50466002)(48376002)(70586007)(4326008)(5660300002)(446003)(1076003)(54906003)(36756003)(2616005)(6916009)(11346002)(356004)(486006)(316002)(336012)(476003)(126002)(2906002)(63370400001)(63350400001)(44832011)(14444005);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0802MB2608;H:nebula.arm.com;FPR:;SPF:TempError;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66008318-5865-4251-07c2-08d727b8a739 X-Microsoft-Antispam-Untrusted: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328);SRVR:VI1PR0802MB2608; X-MS-TrafficTypeDiagnostic: VI1PR0802MB2608:|VE1PR08MB4958: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true X-MS-Oob-TLC-OOBClassifiers: OLM:6108;OLM:6108; X-Forefront-PRVS: 0138CD935C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: VvKeFiM3JOyL1YHL9h805L/YayblK+FmjxmcQYcnNrZ17pFhHw9XNt+ds4UfcUO56Vs5LWbfrAT8OhKqvuW6mBOrvyENXeQFY/EKWCSMlVbMD0+uqwXqJaou+bFdNJrp15XWpZp/P41CTqMOvpJlUOGr8yVi89Saj/yeUAszDcjSEJHVoVdl+m/mZUfjVV98ZgRQdsS34a62Heta0YUIPxTHaMfYcmzZjg45yLE1ZJ3jNKPwXll44ziqMJwLEgRe/XwuU+yyNlo+Zy6xtc9GUKqJerxzYNS/nDmzJxmfC/sGEDdnWp8SqQ07/nHSlwp9BAKnpmDmDWHnJDamhaR9bIk5QIAittuvXo4RHNmiFM+NxMa8WHV6uFjXqlLkb65zaEKV793s1XRf0hA2r213TGmfMjAd4lQrYNztBV6S3AM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2608 Original-Authentication-Results: spf=temperror (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=temperror action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT057.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;IPV:CAL;SCL:-1;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(346002)(136003)(396003)(39860400002)(376002)(2980300002)(199004)(189003)(53416004)(26826003)(478600001)(2351001)(36756003)(54906003)(5660300002)(1076003)(6916009)(2906002)(316002)(22756006)(16586007)(47776003)(86362001)(50466002)(48376002)(4326008)(81166006)(81156014)(305945005)(8676002)(186003)(26005)(50226002)(2616005)(11346002)(76130400001)(446003)(486006)(126002)(70206006)(70586007)(336012)(426003)(63370400001)(63350400001)(7696005)(44832011)(8936002)(476003)(76176011)(14444005)(51416003);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB4958;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:TempError;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;A:1;MX:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 098e133a-49d2-428a-d157-08d727b89e60 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(710020)(711020)(4605104)(1401327)(2017052603328);SRVR:VE1PR08MB4958; NoDisclaimer: True X-Forefront-PRVS: 0138CD935C X-Microsoft-Antispam-Message-Info: YOAbrGEvTaFeVORHLgcpGLllWp7/ZWxvdYl0jdRUltuo+v4v0RiPcz/L3fCRdyI1pOx4SejtD+OJaiwu/gCTp+A/povggro0Whk4bMd4SlHO8FPQBiBGBWkr70Ew6seebirBO0TF6ex3fqYsuKABvJQLAV2ATso90I3c72U9PxsSpL0LNELlntHEOsIhT417uxY+YEK9SLM9uFRQhELlOQTIHFOecw3WfGcsb4SJdw87AI1OMo8o2el+ixdcqW5CNdGqhk+Mlu1TfLn+bXMCNdrXtE5ZjLMzGUQ6jFWMT7fncS0X/LDrpnoiVDpOovKAtb7KtPwLQpM05fjIS6hW3Y9BkA4XEu8Q8+PGYn6EJpvDKlWzfQGV5MzfcUu1vDpYR2yXGbKvak5yhwfiaUp/MtpJFeq+ISik7nhtNw66uUI= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2019 10:57:12.8652 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66008318-5865-4251-07c2-08d727b8a739 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB4958 Content-Type: text/plain The VS2017 compiler reports 'warning C4244: '=': conversion from 'const UINT32' to 'UINT8', possible loss of data' when the ACPI table revision field is being updated. The width of the revision field in the EFI_ACPI_DESCRIPTION_HEADER struct is 8-bit wide. Therefore, to fix the above warning make the ACPI Table revision field usage 8-bit wide across Dynamic Tables Framework. Signed-off-by: Sami Mujawar --- DynamicTablesPkg/Include/AcpiTableGenerator.h | 4 ++-- DynamicTablesPkg/Include/StandardNameSpaceObjects.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DynamicTablesPkg/Include/AcpiTableGenerator.h b/DynamicTablesPkg/Include/AcpiTableGenerator.h index 7d6d3442276db7b4abaeb3b053ba489258adea0b..d7a1209c4d40c2e6ffb3dac786c276a30d70b6df 100644 --- a/DynamicTablesPkg/Include/AcpiTableGenerator.h +++ b/DynamicTablesPkg/Include/AcpiTableGenerator.h @@ -284,10 +284,10 @@ typedef struct AcpiTableGenerator { UINT32 AcpiTableSignature; /// The ACPI table revision. - UINT32 AcpiTableRevision; + UINT8 AcpiTableRevision; /// The minimum supported ACPI table revision. - UINT32 MinAcpiTableRevision; + UINT8 MinAcpiTableRevision; /// The ACPI table creator ID. UINT32 CreatorId; diff --git a/DynamicTablesPkg/Include/StandardNameSpaceObjects.h b/DynamicTablesPkg/Include/StandardNameSpaceObjects.h index 21bb7de4044ffd6f97156f761e30fc1790f11c0c..0ba6b163691ea127ae7a7d57fb5f9fdf84789338 100644 --- a/DynamicTablesPkg/Include/StandardNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/StandardNameSpaceObjects.h @@ -79,7 +79,7 @@ typedef struct CmAStdObjAcpiTableInfo { UINT32 AcpiTableSignature; /// The ACPI table revision - UINT32 AcpiTableRevision; + UINT8 AcpiTableRevision; /// The ACPI Table Generator ID ACPI_TABLE_GENERATOR_ID TableGeneratorId; -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'