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=AuX6rIm9; spf=pass (domain: arm.com, ip: 40.107.8.40, mailfrom: sami.mujawar@arm.com) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.40]) by groups.io with SMTP; Fri, 23 Aug 2019 03:56:32 -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=C+9GRWAJeO9HvbnvFDReoAw91vl9fPBbkvePUKumcMQ=; b=AuX6rIm9SAdV/e3EnNP5hzo5XqbdJRjAxgaZJdRXKUl21lR6VLD2usjDs/lkYdFJwvu1RxYE79LhRNWKGI2ZM0qzCUKNCcAFhojEoIV6W0j5vUKUfundQ/KqzMmPYzW3rMv5I2WKJIHGP3613P7+f2A4yPXij5TyZTMo22XwzyM= Received: from VI1PR0802CA0023.eurprd08.prod.outlook.com (10.172.253.161) by HE1PR0802MB2603.eurprd08.prod.outlook.com (10.175.35.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Fri, 23 Aug 2019 10:56:26 +0000 Received: from VE1EUR03FT006.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::204) by VI1PR0802CA0023.outlook.office365.com (2603:10a6:800:aa::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:56:26 +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 VE1EUR03FT006.mail.protection.outlook.com (10.152.18.116) 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:56:24 +0000 Received: ("Tessian outbound 8b8b6ad907d7:v27"); Fri, 23 Aug 2019 10:56:24 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: d38c31b2e1746484 X-CR-MTA-TID: 64aa7808 Received: from 15f82f43e7e5.1 (ip-172-16-0-2.eu-west-1.compute.internal [104.47.5.58]) by 64aa7808-outbound-1.mta.getcheckrecipient.com id 47F5AFF0-9210-4843-86FD-5A556913A80E.1; Fri, 23 Aug 2019 10:56:19 +0000 Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02lp2058.outbound.protection.outlook.com [104.47.5.58]) by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 15f82f43e7e5.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 23 Aug 2019 10:56:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B8ntvxVp1qsePEE9zgihxA5NxcCSahyh3jydTyJhjwtzIPTtXcaUXrnHgVHe7rt4Q54E5JhQkBaSOi4J/jUeZiN0J6dwpKNF9wsd1szEYiK9K2eq1aLGIR+4w8Hi7FWqIAyPUonAu2rHH8IRAzqEj0mlj6EFAcIs05khE7hfKGXbuM9wisKfd8Nnph2OsGfYT923z8MzqRF7y9NDfqU3OjdWpLviVobrkQuVDI3ZJ7D9v2AxDSX16ILwcCSgYj9JiBpd3rPeKcjotpMPlHshg25hsMPrJwP7mGIbfSkGfRYmOZDi5qeXp1LNpECQiGjTKy9Gw4oA+750L/0JjICOJQ== 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=C+9GRWAJeO9HvbnvFDReoAw91vl9fPBbkvePUKumcMQ=; b=V6/XzChstX9AMcQWtUj70AYsDosgMTQk2Ijj5Z5Uqm/++XxNLnnqCeSa4/Lo+95OfYFHSGx6sQuECWLBPNt3aGbZ5YIQOdPXflVD5Z6HCXMYpdlcE1jiBBbZSnUdyEVlFagG2dG8AvownwXlesnbYBuYosgL6LOXqk4BmEijcc44M6kBjwcVHYd00UagdsFjSk4Fb6vtHeZXwr7dO+8HybGGlH+mg6YY7ouVwjZPnfa9ujHUv2w9fjZpn6kG1KuBR1mWLneHooZLVDd8BUViIUjbh/9MBt3C8PSJ51BpmByocd8DD9yDVaTvuXP4y4+8GkLq/rnIySe4lC5N+DFd0Q== 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=C+9GRWAJeO9HvbnvFDReoAw91vl9fPBbkvePUKumcMQ=; b=AuX6rIm9SAdV/e3EnNP5hzo5XqbdJRjAxgaZJdRXKUl21lR6VLD2usjDs/lkYdFJwvu1RxYE79LhRNWKGI2ZM0qzCUKNCcAFhojEoIV6W0j5vUKUfundQ/KqzMmPYzW3rMv5I2WKJIHGP3613P7+f2A4yPXij5TyZTMo22XwzyM= Received: from VI1PR08CA0098.eurprd08.prod.outlook.com (2603:10a6:800:d3::24) by HE1PR0801MB1849.eurprd08.prod.outlook.com (2603:10a6:3:89::17) 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:15 +0000 Received: from AM5EUR03FT062.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::208) by VI1PR08CA0098.outlook.office365.com (2603:10a6:800:d3::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.14 via Frontend Transport; Fri, 23 Aug 2019 10:56:14 +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 AM5EUR03FT062.mail.protection.outlook.com (10.152.17.120) 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:12 +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:09 +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:09 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , Subject: [PATCH v1 00/19] Fix warnings reported by VS2017 compiler Date: Fri, 23 Aug 2019 11:55:20 +0100 Message-ID: <20190823105539.13260-1-sami.mujawar@arm.com> X-Mailer: git-send-email 2.11.0.windows.3 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)(39860400002)(396003)(136003)(376002)(346002)(2980300002)(199004)(189003)(47776003)(478600001)(16586007)(86362001)(50226002)(54906003)(8676002)(966005)(8936002)(6666004)(356004)(14444005)(81166006)(6916009)(19627235002)(70206006)(36756003)(48376002)(51416003)(5660300002)(7696005)(486006)(126002)(6306002)(2351001)(81156014)(70586007)(2906002)(4326008)(53936002)(63350400001)(426003)(336012)(26005)(63370400001)(186003)(53416004)(1076003)(305945005)(50466002)(2616005)(476003)(44832011)(316002);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR0801MB1849;H:nebula.arm.com;FPR:;SPF:TempError;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f6f95489-1d51-43a0-587b-08d727b88a9c X-Microsoft-Antispam-Untrusted: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328);SRVR:HE1PR0801MB1849; X-MS-TrafficTypeDiagnostic: HE1PR0801MB1849:|HE1PR0802MB2603: X-MS-Exchange-PUrlCount: 1 X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true X-MS-Oob-TLC-OOBClassifiers: OLM:1148;OLM:1148; X-Forefront-PRVS: 0138CD935C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info-Original: 6be7Fk01/9ZbFOp7E73ZvMPItNns9MoXZYB9pFSCUt3amX6fcY0KlpvGjBjblkSXy6O8vqavEJ7/i0KXIn0/hxpVcA5WMwQM4BXJoecqzsCvAqzh3lFH329twv/VtQMALEGdpEkvyo+722KDtGy41yiy6Kikaukl6lxTFMa+Ia6V2ueGnnRRkzBx9X+r4RVjnCNku/L7Y+yTIUlAdU2M3YpdPOK5AgCc8/QMCb9vEQTf5YIAbYugRpyDYzsgaciRXWwY8dOVTjf4Y5RFk2tC2anifnJkYrigl+twqkONj+dOTB67st61gxJUXpBco1c2sYI2okh9JE9OF6mgWJIsa6NMsBFmEApNI8YJUIcFYVccQqeSGrZKjZzQWmF8r3UbKq9wC3nyA38u3c2VXdpyU8C3bKgmpoXQ4uBSqDKQtjQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0801MB1849 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: VE1EUR03FT006.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)(376002)(396003)(39860400002)(346002)(136003)(2980300002)(189003)(199004)(2616005)(14444005)(86362001)(22756006)(6916009)(70206006)(70586007)(1076003)(16586007)(81156014)(54906003)(7696005)(51416003)(81166006)(19627235002)(47776003)(966005)(316002)(8936002)(8676002)(36906005)(305945005)(186003)(26005)(36756003)(336012)(50466002)(2906002)(50226002)(4326008)(6666004)(5660300002)(76130400001)(6306002)(2351001)(53416004)(63370400001)(478600001)(63350400001)(426003)(44832011)(26826003)(126002)(48376002)(486006)(476003);DIR:OUT;SFP:1101;SCL:1;SRVR:HE1PR0802MB2603;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:TempError;LANG:en;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;MX:1;A:1; X-MS-Office365-Filtering-Correlation-Id-Prvs: 7c5c0826-7dbd-4608-4d30-08d727b88389 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(710020)(711020)(4605104)(1401327)(2017052603328);SRVR:HE1PR0802MB2603; NoDisclaimer: True X-Forefront-PRVS: 0138CD935C X-Microsoft-Antispam-Message-Info: bPSZjmo9+v/VD3r6fby34rAbO6ftIg0JbJXM8GPfYqD6+Dv54zgtdl+g4OwdjjYyLPG+B2uFR8F0PWMB6osgV63ntjHTKqWbZ+LDm03rmLwP4KFMhElAfO45kHuulcxK3tCrXHw+JvciAVduR1aTaP2uofx/Zq6ZTecNXX6jwuScXeai6RPNmYprl7bWFXUWhPXdpKIaGle09UjYZMBOgbVtmWd17lbrCk1hKlYkDnLEnOBLyhI3/hN7SHWqDSrooLI9fimc6xdW7glzZke9GW5u0mWvdWuWpzA/Zae6OJaQmBTenb0gFVgT7VCvo44WWFDHwfPdadrikM16APB4Q78+3TawOke3PlW5xf4Zz9gVbT2OjaUpDtAsdIshdegPm/Wyxj7JLLk5ildXMPojIG0eE8bhJBvtGWgln2jj96U= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Aug 2019 10:56:24.7931 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f6f95489-1d51-43a0-587b-08d727b88a9c 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: HE1PR0802MB2603 Content-Type: text/plain This patch series: - fixes warnings reported by the VS2017 compiler - adds an option to enable VS2017 static code analysis - fixes warnings reported by the edk2 build system The issues fixed in this series were identified by building DynamicTablesPkg/DynamicTablesPkg.dsc using the VS2017 compiler with the static code analysis option. The changes can be seen at: https://github.com/samimujawar/edk2/tree/503_vs2017_compile_issue_v1 Sami Mujawar (19): DynamicTablesPkg: Fix entry point param definition DynamicTablesPkg: Fix missing local header warning DynamicTablesPkg: Remove struct CM_ARM_CPU_INFO DynamicTablesPkg: Fix serial port subtype warning DynamicTablesPkg: Fix Proc node length assignment DynamicTablesPkg: Fix GT Block length assignment DynamicTablesPkg: Fix Boot arch flag width DynamicTablesPkg: Fix ACPI table rev field width DynamicTablesPkg: Fix unaligned pointers usage DynamicTablesPkg: Serial debug port initialisation DynamicTablesPkg: Remove redundant frame count check DynamicTablesPkg: Fix IORT node length assignment DynamicTablesPkg: IORT: Fix uninitialized memory usage DynamicTablesPkg: PPTT: Fix uninitialized memory usage DynamicTablesPkg: Remove erroneous use of EFIAPI DynamicTablesPkg: Option for VS2017 static code analysis ArmPlatformPkg: Fix UART divisor warning ArmPlatformPkg: Fix comparison of constants warning MdePkg: Initialise VA_LIST variables before use ArmPlatformPkg/Library/PL011UartLib/PL011UartLib.c | 16 +- DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.c | 6 +- DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.inf | 1 + DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c | 4 +- DynamicTablesPkg/DynamicTablesPkg.dsc | 9 +- DynamicTablesPkg/Include/AcpiTableGenerator.h | 4 +- DynamicTablesPkg/Include/ArmNameSpaceObjects.h | 6 +- DynamicTablesPkg/Include/Protocol/DynamicTableFactoryProtocol.h | 11 +- DynamicTablesPkg/Include/StandardNameSpaceObjects.h | 2 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiDbg2LibArm/Dbg2Generator.c | 35 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiFadtLibArm/FadtGenerator.c | 8 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiGtdtLibArm/GtdtGenerator.c | 43 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/AcpiIortLibArm.inf | 3 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiIortLibArm/IortGenerator.c | 454 +++++++++++++------- DynamicTablesPkg/Library/Acpi/Arm/AcpiMadtLibArm/MadtGenerator.c | 8 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiMcfgLibArm/McfgGenerator.c | 8 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/AcpiPpttLibArm.inf | 1 + DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/PpttGenerator.c | 98 +++-- DynamicTablesPkg/Library/Acpi/Arm/AcpiPpttLibArm/PpttGenerator.h | 13 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiRawLibArm/RawGenerator.c | 8 +- DynamicTablesPkg/Library/Acpi/Arm/AcpiSpcrLibArm/SpcrGenerator.c | 23 +- MdePkg/Library/BaseLib/SwitchStack.c | 9 + MdePkg/Library/BasePrintLib/PrintLib.c | 5 + MdePkg/Library/BasePrintLib/PrintLibInternal.c | 9 + 24 files changed, 501 insertions(+), 283 deletions(-) -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'