From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (EUR01-DB5-obe.outbound.protection.outlook.com [40.107.15.57]) by mx.groups.io with SMTP id smtpd.web11.29107.1585494845518392856 for ; Sun, 29 Mar 2020 08:14:06 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=ImehiNLy; spf=pass (domain: arm.com, ip: 40.107.15.57, 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=UHs2mjBWwgn4kwPgo7578I/BHSp05T2bvo14hZEByAA=; b=ImehiNLyZE0DHK4IBULcN5jddKSB0McinCp2Z8WvoEcPIS+FH+LQRPCB6h6a48yXwJYLDGRoETMUit/K7Y7ipeJQJEhPHNrqPdovMBW7LrABPrwkNIVJ7WgPNbegyBJ1GOGJWB0bpI9bHMfq3JQD+gs0r9OJBTze12xi4p425kY= Received: from DB8PR06CA0053.eurprd06.prod.outlook.com (2603:10a6:10:120::27) by DBBPR08MB4395.eurprd08.prod.outlook.com (2603:10a6:10:cf::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.20; Sun, 29 Mar 2020 15:14:03 +0000 Received: from DB5EUR03FT055.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:120:cafe::22) by DB8PR06CA0053.outlook.office365.com (2603:10a6:10:120::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2856.18 via Frontend Transport; Sun, 29 Mar 2020 15:14:03 +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 DB5EUR03FT055.mail.protection.outlook.com (10.152.21.30) 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:02 +0000 Received: ("Tessian outbound 8f06d475fc37:v48"); Sun, 29 Mar 2020 15:14:02 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 60e378cd926f66b2 X-CR-MTA-TID: 64aa7808 Received: from fc7893b23d0d.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B57217F8-3F2A-487F-9695-FCA5101F1835.1; Sun, 29 Mar 2020 15:13:56 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fc7893b23d0d.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Sun, 29 Mar 2020 15:13:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZXjVX4OxrrzItFZ8EAz7nmx1zIEfK0E6Qn/q/QpG97MuFhHDGPMYnhtPvnRsPa9KueCZIZ5PK/i9NfaCTaFdVw41ljvf9G2lRVXn0YNteHombqwISLkgMwIrrrWDjMAD12R7NBY918zkqq457qGfZq8WL6DkEWINsLZ9ki7/59dAfxQJTwAaNjTSDsPSXB53pZ9wqU0Gx49ScUMYVDE826E9cu4DnjCk4GdO03QOjf2LYLm91LP3NO8QCG+j9s7WQyWjhkp/WbnQJ4at0sMM3YZDur7XHhViSVChbSQc+ZyckuJ2j1PDWojIhRfvmW1W8LkNtG/Q8brmPmSI7NSpqw== 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=UHs2mjBWwgn4kwPgo7578I/BHSp05T2bvo14hZEByAA=; b=b208jzT902aitfeWi4GwAL31xAiIVlghojAj4XGKcaaMAr3rPCRVblnJTVeHygRJue+XtcWEV1zZmbZEvg9RW24SdaiIAh6scgZKi9hSPnM99PrhKbnP+XjVJSmJNw5dv3W22wbdQA6XfnMUAvDlwcxWYGQZ0F4LSKIjmlggyIiJaziobbgtjl8djx843+iJHLMfOkVnTWx4rVUXy70jh9zX0emF+rPJKWRmVDFSLgeoCKJeUV8R4ZbBw9ZL3qiGnscY09XghgQJ8xLZiUmi2BXz7bOlmvLs70R4szxFnMgamD+7hIFCu8+FRlAfflwQ1FJ46F05JyVKLOdVoeWbvQ== 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=UHs2mjBWwgn4kwPgo7578I/BHSp05T2bvo14hZEByAA=; b=ImehiNLyZE0DHK4IBULcN5jddKSB0McinCp2Z8WvoEcPIS+FH+LQRPCB6h6a48yXwJYLDGRoETMUit/K7Y7ipeJQJEhPHNrqPdovMBW7LrABPrwkNIVJ7WgPNbegyBJ1GOGJWB0bpI9bHMfq3JQD+gs0r9OJBTze12xi4p425kY= Received: from AM6P192CA0086.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::27) by AM0PR08MB4500.eurprd08.prod.outlook.com (2603:10a6:208:147::10) 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:13:55 +0000 Received: from AM5EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8d:cafe::b2) by AM6P192CA0086.outlook.office365.com (2603:10a6:209:8d::27) 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:13:55 +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 AM5EUR03FT040.mail.protection.outlook.com (10.152.17.148) 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:13:55 +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:54 +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:53 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , Subject: [PATCH v2 00/16] Fix warnings reported by VS2017 compiler Date: Sun, 29 Mar 2020 16:13:37 +0100 Message-ID: <20200329151353.14096-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;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFTY:;SFS:(10009020)(4636009)(39850400004)(376002)(396003)(136003)(346002)(46966005)(6916009)(4326008)(36756003)(478600001)(2906002)(966005)(316002)(8936002)(54906003)(44832011)(6666004)(356004)(2616005)(86362001)(336012)(7696005)(426003)(70206006)(26005)(1076003)(81166006)(70586007)(8676002)(82740400003)(81156014)(47076004)(186003)(5660300002);DIR:OUT;SFP:1101; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 819de9ed-1f85-442d-acb8-08d7d3f3d0c9 X-MS-TrafficTypeDiagnostic: AM0PR08MB4500:|DBBPR08MB4395: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:10000;OLM:10000; X-Forefront-PRVS: 035748864E X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: 4zayW2Qw3BsvvTZHUjfNWpb0+CXK4z+0zm4p/iUshvgxstwdNR9kcIcHNZAQnIw7m4XEHAtDOX9SuxrM8zZHOgxnTAN8gvyIQRNBkRN0yVOVDkvSSUPxy03fGdrQs3e8YnYYGv1UGPkIlf9M43mhdzTllDsyt3IvsVgew+JtYrwboTInXcrWtATscqx7FcdTCX2/SR35lDrs/40D5Fsx087YpaQKEiKcMzgaE2VzBf3xP+UYQcxI3VQT8zlT7wou8yehiO3sF5/fIWvrDiFKWYpgc2jiGFkVvvPKwemKZ1Gi6i4a1deX54Msi6nqDkSLMbtFAJR0r7fhbkapXIwirqcmoPXER6wMbKT+byF7QhwonIzH4VqZNWSgmbg1G2TjiZy8tpDNRx+0yhP5gPmh14oGPnhVenwyGHpXuIIOv2HwIpiLDkkEzRV68YuGrBAMHRL4AqeBebbeTvG04AxJQUzoihPmkait+T91fZZiul7WSqVBjKaSIun+tEfnBR+agEHWt2OhV5QxW6xNZSRS9cSBozqz7MS/CiuBlGx5OYA9lQdcJsVw+3iU9w6er3qY/pheMJdcq4+tlBRHOPALTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB4500 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: DB5EUR03FT055.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)(136003)(396003)(39850400004)(376002)(346002)(46966005)(2906002)(47076004)(82740400003)(2616005)(478600001)(426003)(8676002)(1076003)(36756003)(5660300002)(8936002)(81156014)(81166006)(966005)(7696005)(26826003)(6916009)(54906003)(186003)(44832011)(316002)(4326008)(6666004)(86362001)(336012)(70586007)(26005)(70206006);DIR:OUT;SFP:1101; X-MS-Office365-Filtering-Correlation-Id-Prvs: ee27be6d-9885-4226-e1f1-08d7d3f3cc32 X-Forefront-PRVS: 035748864E X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2TjP4PnYJOxNJ1m7POZqopP43tI4G1ioyKxGe/5Irj7cZROTsSpsgZ+tCcumE6CvvWAqIeU6tcNZ6jHxz6hmVjEqWgWTFa5r5eLWKxo2Rhu3V+YArGvP107iW3ZC0dFYP2Ne3E7UCzDGynWsZN7lv3NYZI5oDPT40UjHPTXNzV/MH4N6Lh2Ir+FYpl51mZeJKI5Ypyx94A78QOrYaK2GImeGJ3BzRA7tayT4HN4uZPgsUtUTiwTMNQkKXkBkPbHuNVC1RJJUyG4SMskMyOxMUHkuUhldjgQi+HO8HnQ/MaXnTJG/6XimcoecOiDQj0ERzbcLyp0xkd3KcmruT6mQXOrPquTo27A2P2PtpE9bUeLNjXwOE90yVV/zOsU0VS4WfK+eB8SRprpnFuHafjd9d4wB/KnBDtqb5XZamoO3mGMjrg5BGEzEehStYivnyZB2zikOZ3IGMIXuu1kkgEMtgAVDnJUP6/l/swCyaO4k+ljE6sR+83u2uSfNOg3LLhiYB/eNXFzZODcYgdPoInd/qwMDe5XSVeNoo0W+8maqGg/Ld7cswjIVeG/BsuoOk/X/Iqmc/JwE53wnwcXea+FXHA== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2020 15:14:02.9355 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 819de9ed-1f85-442d-acb8-08d7d3f3d0c9 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: DBBPR08MB4395 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. This V2 patch series is a subset of the v1 patch series and contains the patches for DynamicTablesPkg. The v1 patch series can be found at: https://edk2.groups.io/g/devel/message/46261 The changes for the v2 patch series can be seen at: https://github.com/samimujawar/edk2/tree/503_vs2017_compile_issue_v2 Sami Mujawar (16): 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 DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.c | 6 +- DynamicTablesPkg/Drivers/DynamicTableFactoryDxe/DynamicTableFactoryDxe.inf | 1 + DynamicTablesPkg/Drivers/DynamicTableManagerDxe/DynamicTableManagerDxe.c | 4 +- DynamicTablesPkg/DynamicTablesPkg.dsc | 7 + 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 +- 20 files changed, 466 insertions(+), 277 deletions(-) -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'