From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.42]) by mx.groups.io with SMTP id smtpd.web10.29263.1585494856191226575 for ; Sun, 29 Mar 2020 08:14:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=qVlimMUE; spf=pass (domain: arm.com, ip: 40.107.5.42, mailfrom: sami.mujawar@arm.com) 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=3kegO/cTeaqMv8cEoOPhE/CfZmVdHYiYD9eGmkoCzi4=; b=qVlimMUEoLL4VhQQYoUONrfMRcizOSZI5ZkNNi1+rPt8UlghTuOkKm5Otdh638iFt6W8tWRDKF4Wx603Hu9By3kfNZrgL3qQMDfuTeMKKlroghcD3HNWBwn3jOq08fMLpwB8pNYSWGYcnhD4sfL8xLfOP54UEZPGYP1Qr0MrM3o= Received: from DB6PR0402CA0005.eurprd04.prod.outlook.com (2603:10a6:4:91::15) by AM6PR08MB4054.eurprd08.prod.outlook.com (2603:10a6:20b:a0::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20; Sun, 29 Mar 2020 15:14:13 +0000 Received: from DB5EUR03FT006.eop-EUR03.prod.protection.outlook.com (2603:10a6:4:91:cafe::51) by DB6PR0402CA0005.outlook.office365.com (2603:10a6:4:91::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19 via Frontend Transport; Sun, 29 Mar 2020 15:14:12 +0000 Authentication-Results: spf=pass (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=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT006.mail.protection.outlook.com (10.152.20.106) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.17 via Frontend Transport; Sun, 29 Mar 2020 15:14:12 +0000 Received: ("Tessian outbound d6b3ed9fc62a:v48"); Sun, 29 Mar 2020 15:14:12 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 1c7daf9495ffc327 X-CR-MTA-TID: 64aa7808 Received: from 959aed4abf9d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 4D9FF3F2-3B01-4030-8705-9E6C57D1FD18.1; Sun, 29 Mar 2020 15:14:06 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 959aed4abf9d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sun, 29 Mar 2020 15:14:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VxHGwCj2clsn1kgB0vn2MxJOoDFADXY4TXtKqOM+CMWwxxDgkoPzdhiJ7Bn2LsEB7kD2ytTyg0F6hZrckCujcUhICQ0a1NTGx7XZJVmvwIqX6XtrDiGCSn/59v7YnUI+mmv9Lhl3HxvPWebOUdcAZmPSBjtlT1itGjpnvA6nsvT3HS3O77Jtl7WfrIQNI3UTOzYT0cLDrXkE32u3aY6ICTxLqKuzclalgwBKQwIqWMgqpveu0aZbZvtWDigg9JIVoF+4+3A2X/DMBW/QhFm3cxdZpfyZT/4CAr6bV/AsRz7VZS+/Kn2nQNi7BbqWJ3ssfnJTMBWAoSqKsB1NbbbhTg== 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=3kegO/cTeaqMv8cEoOPhE/CfZmVdHYiYD9eGmkoCzi4=; b=k6lj7P5svpzxrsOON63nFcvqOu7OsCE1JsR7sOk4TdX6iPw0Fr+mC2Ebz1btceuDUrMjD+tt/FVqPd7AZdFAE/hUtcRlGGJZC9dgYX2mdcD1eZlthp6LLO1balJRH7ooYpfdDoJCNY+k9nZUrFGSBXcO/uTFTaDVEeZ5vNb8OvGx9xE3QERYDuRarHZntcZ6I1+hDioMUW/iaQUmbJroNjqZ0oEtt5PXQFE3MuT9QbEk76XentcUmFPOguue0Ezcp8DvVbhhmsWsk/esBPMrvDIesMhZUPkRbm3aGLQQGfJXojIJCvZnDAbK1OJr8isLWwMK3DHAxIuqpAusJVUd1g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=bestguesspass 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=3kegO/cTeaqMv8cEoOPhE/CfZmVdHYiYD9eGmkoCzi4=; b=qVlimMUEoLL4VhQQYoUONrfMRcizOSZI5ZkNNi1+rPt8UlghTuOkKm5Otdh638iFt6W8tWRDKF4Wx603Hu9By3kfNZrgL3qQMDfuTeMKKlroghcD3HNWBwn3jOq08fMLpwB8pNYSWGYcnhD4sfL8xLfOP54UEZPGYP1Qr0MrM3o= Received: from AM4PR0902CA0015.eurprd09.prod.outlook.com (2603:10a6:200:9b::25) by AM0PR08MB4434.eurprd08.prod.outlook.com (2603:10a6:208:143::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.19; Sun, 29 Mar 2020 15:14:05 +0000 Received: from AM5EUR03FT061.eop-EUR03.prod.protection.outlook.com (2603:10a6:200:9b:cafe::22) by AM4PR0902CA0015.outlook.office365.com (2603:10a6:200:9b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.20 via Frontend Transport; Sun, 29 Mar 2020 15:14:05 +0000 Authentication-Results-Original: spf=pass (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=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; Received: from nebula.arm.com (40.67.248.234) by AM5EUR03FT061.mail.protection.outlook.com (10.152.16.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2856.17 via Frontend Transport; Sun, 29 Mar 2020 15:14:05 +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; Sun, 29 Mar 2020 15:13:59 +0000 Received: from E107187.Arm.com (10.57.20.21) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Sun, 29 Mar 2020 15:13:59 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , Subject: [PATCH v2 07/16] DynamicTablesPkg: Fix Boot arch flag width Date: Sun, 29 Mar 2020 16:13:44 +0100 Message-ID: <20200329151353.14096-8-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 In-Reply-To: <20200329151353.14096-1-sami.mujawar@arm.com> References: <20200329151353.14096-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;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(396003)(136003)(39850400004)(376002)(346002)(46966005)(478600001)(316002)(36756003)(1076003)(6916009)(7696005)(86362001)(966005)(5660300002)(54906003)(186003)(26005)(47076004)(8936002)(426003)(2616005)(82740400003)(8676002)(44832011)(6666004)(2906002)(356004)(70586007)(70206006)(81166006)(81156014)(336012)(4326008);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e28b14c5-c345-47ac-8ca0-08d7d3f3d6b1 X-MS-TrafficTypeDiagnostic: AM0PR08MB4434:|AM6PR08MB4054: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:9508;OLM:9508; X-Forefront-PRVS: 035748864E X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: BG5O9aruh4p/boRgm+NhB2y76a0YxNOG1vY9uYzd5wWv93XZX01AjseCCGp17geUiQm/po8vKvHpHN1h8RSO98zOKtaHTrJgxulhbbiVXGMp/vMoxYuCLHI2khwOvtKAELGjtZhWRBAHH4bQhy0C/ypFja962/Tm1sR0S4ATMsoG1EA1sEuNDPVczByo46PRoTtIrNN/3fdGqp1Tta3mszbfcgKJnLcFCzGRuppfHsDPIA2vowus2fDSO7ldrBGpJkeVqo1sI15iLYmjMb9nq04C9TelA10rWVpyp3kDLk/MA/3P9B7GsNrV+iuUxFkrfUpyTPR9+7gsW/TmwiMAsrOk/JmaK/wUFM1pChhakUkLqW+wB116HPke1Gbm9nZhkByKUYpwQ9o064ke1zFCrlg4XKEn/jwTbDVrxBD0zbUClC85qcTQJOGRHCM7hER0sXWXlTsGuXUhTjC+O656/mraIrpDynoMxswEtWyMm5P7D4Rf6tUCrabsxhUgP/8zMpvczBXKMXQdeXzHxBdf3O+k1trjz85LyhVs5tuNDgGKqrclkho3C4e4Je9pZHz4ZTKt/roGX7A/1OQ3rBleQUkIADwbq5GT6AjmUpIKKas= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4434 Original-Authentication-Results: spf=pass (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=bestguesspass action=none header.from=arm.com; Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT006.eop-EUR03.prod.protection.outlook.com X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(376002)(136003)(346002)(396003)(39850400004)(46966005)(26005)(2616005)(4326008)(7696005)(44832011)(70206006)(6666004)(82740400003)(1076003)(8676002)(70586007)(36756003)(426003)(81166006)(86362001)(81156014)(8936002)(54906003)(316002)(336012)(47076004)(6916009)(2906002)(966005)(478600001)(26826003)(5660300002)(186003);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: 219d3201-d1b4-40bd-e85e-08d7d3f3d24c X-Forefront-PRVS: 035748864E X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gyrq3gzS2Qlejqc3RnCm5gL4Oy+tS0WAbD4YYZmQQNlMkA1vUu0WnL6zpWaz922CpusD4GCXdqqxXHbYcM0FOxVem+Y8WG1SKKMd0CHltEEusF+DbFMjO+erCYYJx3EOYJYp/tCObvEJo3UnwAAf3eQ+mAt4YVuwoMcceWw/85OLxHuogSpQqByzDI3O+JmMrk/mc+DvWYibKa41Jcl42Q+9ufAYTEcqydU9i8Dc3nJVI6yNpuGCFz1IaYMkkcd4fb+YQXsmLmY1I5/9f0hjGBVGlciE1G7Dq2nck/5noyeUMu7i9CF6dkyVjJs4KbNDkb2kxPgAN44paAwBfbd4YJ7ITDUuKmL3K7qG2dqgNm8yuaVHUFX8nbo/4xCqPy7GZIiEB/kBHcWTo9Gr4z4cQOy+PrcUWSCyya3FfmVAYVehe7Yg7cAw9VVdvg+gsO8tMkPrIoaBhNkgHpUOhrDMNPYcvtsUXpBzh3rOpsu0qj348b0pvfSSmougaP9yjFXz4qEPvXJcbF+9GZqoRy7O85aXlqqVZ2BjssLeAzR1X8876gZV1Aku5G688sm6RVUgeLp+Wr6j4C0FKLS2imXoaJEl5a3CTRgMRprF9yZ7wow= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2020 15:14:12.8428 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e28b14c5-c345-47ac-8ca0-08d7d3f3d6b1 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: AM6PR08MB4054 Content-Type: text/plain The ArmBootArch field of the FADT table is 16-bit wide. The VS2017 compiler reports 'warning C4244: '=': conversion from 'UINT32' to 'UINT16', possible loss of data' when assigning the CM_ARM_BOOT_ARCH_INFO.BootArchFlags value as the width of this field in CM_ARM_BOOT_ARCH_INFO is 32-bit wide. To fix this warning, update the CM_ARM_BOOT_ARCH_INFO struct to make the BootArchFlags field 16-bit wide. This also makes it compatible with the ACPI FADT specification. Signed-off-by: Sami Mujawar Reviewed-by: Alexei Fedorov --- Notes: v2: Splitting patch series and re-submitting DynamicTablesPkg [SAMI] patches from https://edk2.groups.io/g/devel/message/46261 DynamicTablesPkg/Include/ArmNameSpaceObjects.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h index 2874938b663c33edf5bdaac9f41495f75abfc945..2f326960313c1d7658029205e5cb09b89b0cdd88 100644 --- a/DynamicTablesPkg/Include/ArmNameSpaceObjects.h +++ b/DynamicTablesPkg/Include/ArmNameSpaceObjects.h @@ -68,7 +68,7 @@ typedef struct CmArmBootArchInfo { /** This is the ARM_BOOT_ARCH flags field of the FADT Table described in the ACPI Table Specification. */ - UINT32 BootArchFlags; + UINT16 BootArchFlags; } CM_ARM_BOOT_ARCH_INFO; /** A structure that describes the -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'