From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (EUR05-DB8-obe.outbound.protection.outlook.com [40.107.20.53]) by mx.groups.io with SMTP id smtpd.web12.10670.1580223940532757624 for ; Tue, 28 Jan 2020 07:05:41 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=CR/g632X; spf=pass (domain: arm.com, ip: 40.107.20.53, mailfrom: krzysztof.koch@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=3XHcQHhe0jFKwDvN3Qptpz3jtCASPBAXzW+icSWVQ2M=; b=CR/g632XFyEQqSo0zEuAv8Px1SKnQs33o6a67cWuGndqy5z5DP6/xS5MsZONZqAIhBtvYwPYBwHP32Wly8pPLJLZL3CqI/LmUboN39OtuYvnSGQ1OcGurMThOVL0Vh/i4K4SnsaA1u87Go/It28qpg5r0YHq5zf2UL+IxSfyW1s= Received: from VI1PR0801CA0080.eurprd08.prod.outlook.com (2603:10a6:800:7d::24) by VE1PR08MB5054.eurprd08.prod.outlook.com (2603:10a6:803:10d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.23; Tue, 28 Jan 2020 15:05:37 +0000 Received: from VE1EUR03FT008.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::203) by VI1PR0801CA0080.outlook.office365.com (2603:10a6:800:7d::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.20 via Frontend Transport; Tue, 28 Jan 2020 15:05:37 +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 VE1EUR03FT008.mail.protection.outlook.com (10.152.18.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.18 via Frontend Transport; Tue, 28 Jan 2020 15:05:37 +0000 Received: ("Tessian outbound 0420f1404d58:v42"); Tue, 28 Jan 2020 15:05:37 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3d014a61dbaabcee X-CR-MTA-TID: 64aa7808 Received: from 48947b62edb3.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id C2FD07F9-C6C3-43E6-8D88-67382C479B92.1; Tue, 28 Jan 2020 15:05:31 +0000 Received: from EUR04-DB3-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 48947b62edb3.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 28 Jan 2020 15:05:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KBzg+HWH9clLO4VKRtrh6qccLra4EKu7X2IQdjx91X/v6ILrTqaDxXDL01wB9yVB1NkW93AJDzi/7wxRmb5dIN4HNF7+5gsdqMPnRIG6n+atFb1RLskygukYAotQTj3jnp7fYawKi7Ghe8Z29ni1YRvka4kXx4xN0K3UOOcZ26mrgcwsozjbIhsXEih/lVLryqk55Hg1UEPSzrzJhxVN7iJJMwOaT5dYNBwbwv/yhxjm+IHzSJw49GG6O/YKcW9w/Q9Af5kag89S70t6nn7iKdOIDWswsmz5OyaBS1q7akweCVx49wp+VUZCJxc6tSnLBLRlkOnlAPOAsH8U/7ddCA== 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=3XHcQHhe0jFKwDvN3Qptpz3jtCASPBAXzW+icSWVQ2M=; b=Rf8pFQk5gAoEGx0ZGKKcOj5xFdNaTTrXc3CCDucsAV58YPO/iFOEJjn74hVFQS9trlOIlvGlHWCSO6FMjNl+LIa10+27HKmKss1zS1peZlmRRqr8jyYpdpGv2cXzYtZmAA5f5KDZUnvfdJUS5GxJLPFVmDgNYZBLX8Qi561Ur4SeQlN1HVb5UqgSMSoKJ34Yh1slcKcggPU0tpSg3in0atgfznVQQG/EpF1ql8N85wDKpJUCLTC9OnNN3zgD0iqoKEGQrPk+SYY9Z7wbBBrC+Gs8JouFXz5/SaECV+HyVSyt5D+qOT5oU+oMaMko0QXiQ8TUDT622PGn1G2SiFR6Eg== 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=3XHcQHhe0jFKwDvN3Qptpz3jtCASPBAXzW+icSWVQ2M=; b=CR/g632XFyEQqSo0zEuAv8Px1SKnQs33o6a67cWuGndqy5z5DP6/xS5MsZONZqAIhBtvYwPYBwHP32Wly8pPLJLZL3CqI/LmUboN39OtuYvnSGQ1OcGurMThOVL0Vh/i4K4SnsaA1u87Go/It28qpg5r0YHq5zf2UL+IxSfyW1s= Received: from VI1PR08CA0143.eurprd08.prod.outlook.com (2603:10a6:800:d5::21) by DB7PR08MB3898.eurprd08.prod.outlook.com (2603:10a6:10:30::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.22; Tue, 28 Jan 2020 15:05:30 +0000 Received: from AM5EUR03FT019.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::201) by VI1PR08CA0143.outlook.office365.com (2603:10a6:800:d5::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2665.20 via Frontend Transport; Tue, 28 Jan 2020 15:05:30 +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 AM5EUR03FT019.mail.protection.outlook.com (10.152.16.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.2665.18 via Frontend Transport; Tue, 28 Jan 2020 15:05:29 +0000 Received: from AZ-NEU-EX03.Arm.com (10.251.24.31) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Tue, 28 Jan 2020 15:05:11 +0000 Received: from E119924.Arm.com (10.1.199.55) by mail.arm.com (10.251.24.31) with Microsoft SMTP Server id 15.1.1415.2 via Frontend Transport; Tue, 28 Jan 2020 15:05:11 +0000 From: "Krzysztof Koch" To: CC: Ard Biesheuvel , Leif Lindholm , Michael D Kinney , , , , Subject: [edk2-platforms][PATCH v2 1/1] Platform/ARM/ArmJunoDxe: Fix 'unused variable' error for DynamicTables Date: Tue, 28 Jan 2020 15:05:05 +0000 Message-ID: <20200128150505.45700-1-krzysztof.koch@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;IPV:;CTRY:IE;EFV:NLI;SFV:NSPM;SFS:(10009020)(4636009)(396003)(376002)(136003)(346002)(39860400002)(199004)(189003)(81166006)(81156014)(316002)(70206006)(8676002)(1076003)(36756003)(336012)(54906003)(7696005)(26005)(70586007)(478600001)(86362001)(6666004)(6916009)(4326008)(2906002)(966005)(186003)(8936002)(426003)(2616005)(5660300002)(44832011)(356004);DIR:OUT;SFP:1101;SCL:1;SRVR:DB7PR08MB3898;H:nebula.arm.com;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;A:1;MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9b2c3f76-b321-43b3-f9ed-08d7a4038853 X-MS-TrafficTypeDiagnostic: DB7PR08MB3898:|VE1PR08MB5054: X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Oob-TLC-OOBClassifiers: OLM:1303;OLM:1303; X-Forefront-PRVS: 029651C7A1 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: jV3+dAAgtmhbb/zc19yn9d5x8EO4zsIGDv1mpdqjaiBOvgcll2psJDhrfsiOvd/ABgsZXaK0986eu0K3fktltPs/4TtDRpdBzGnvjn5ZStjjDaqhAWFD+z9stwODhAb+9h2yZyyUrapIxIhGWHpa80RZULE9wlkBu0GFVWP5wb6A8MYhg1F7I7xvLI7MCiMf1cbZ6iRIsbhKdBhZgi8DtbwhFqY+bbPtL5IqN3g7hx4KUZPhsKDsfrNvgQ5NacXkIzfgqQZQahClTXkxoOotcNB2zat/gObykbHR+Rq52fZ7/S4emebH+gZXKI1iSp9gAJk6iEnh6NYDAou2f6yQIJH5kcJgzDxBoCjG2Rufo6RT0K2ulP9K8PHB1pNnocJYjDVvRNq83NSguWaEfl39c3P+jAmpfn6Qv1OFd+1Q4Y0F1YQ4+vJZBMgr5F9ffX89IW6xZWnkujZ/y/J25+UvGCHbBsoKnu8JHfBFogjdFHZSRBQ9q1XuZScmKnRRsXtDhzzZr7CtfC1/6yBOby9sPg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3898 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: Krzysztof.Koch@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT008.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)(39860400002)(396003)(346002)(136003)(376002)(199004)(189003)(7696005)(81166006)(81156014)(5660300002)(8676002)(6916009)(70586007)(6666004)(36906005)(86362001)(1076003)(44832011)(316002)(54906003)(70206006)(4326008)(26826003)(186003)(478600001)(36756003)(336012)(426003)(2906002)(2616005)(26005)(8936002)(966005);DIR:OUT;SFP:1101;SCL:1;SRVR:VE1PR08MB5054;H:64aa7808-outbound-1.mta.getcheckrecipient.com;FPR:;SPF:Pass;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: 45db47de-2796-4ebf-4170-08d7a40383b5 X-Forefront-PRVS: 029651C7A1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: k8/M6tqme2GltlMxmFEFiUSFh/2CrBz/EZogAY7ycahMRHFyMcuslu197EfzMEWAgCVSrOoi7n6yJg6RnK2f72D/9FZeBgZ+CThQy7JRNFuOoDSPxDWz504LvxK+/gMRAeH78Takp2vBgo5Z2HWlnNp2lRyOc7VW7GFZ7yVz/33Vxvooj1jNFBtm9+gBNkq4kW/uLYb5Xjo/22IiPlbKtrFPK2jT3s8MlX9iGlkBc5AnlLgabrI5W4SklvvHzjmMs7ZdBV+wrbTSZHqfZYlb8AI5WDaRkc9caGGjBX4m6rifRIloeEHS/BWaMrkeAdBKiAnw4iiPpIbVuAAjWtdmGsNCfzAFXZJLVy4e273swm+RkLuk+WzQ7LER8Wq7fa92OlHjd4ahXXr+LDmHBZbuKjFbEhVPy16raiUZBW13WGmwHrqcZx+8xpOTUCC+3id1fhszj1OimZuMV1IV2LgOfdRgA7flMBro/9wXSo1eFz2H8OPv8KXehRXlS8wZw1wvToZO0lBOUEcjmthYmCjnoQ== X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Jan 2020 15:05:37.3905 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9b2c3f76-b321-43b3-f9ed-08d7a4038853 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: VE1PR08MB5054 Content-Type: text/plain Fix 'mAcpiRegistration defined but not used' compiler error for Dynamic Tables Framework builds. Do not declare the mAcpiRegistration variable in the Dynamic Tables Framework context. Commit 484a683ab9f made mAcpiRegistration variable STATIC. Reducing scope made scope resolution simpler, thus, the 'defined but not used' error got raised. Signed-off-by: Krzysztof Koch --- Changes can be seen at: https://github.com/KrzysztofKoch1/edk2-platforms/tree/723_fix_unused_variable_juno_dxe_v2 Notes: v2: - Specify which previous commit inroduced the error [Philippe] v1: - Fix 'defined but not used' Dynamic Tables build error [Krzysztof] Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c b/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c index e3b64992e02c003f7e3a6636340a6afa573f477a..cd7a205f90f131560419cfd744dd5c22df726c99 100644 --- a/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c +++ b/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2013-2019, ARM Limited. All rights reserved. +* Copyright (c) 2013-2020, ARM Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -30,9 +30,9 @@ #ifndef DYNAMIC_TABLES_FRAMEWORK // This GUID must match the FILE_GUID in ArmPlatformPkg/ArmJunoPkg/AcpiTables/AcpiTables.inf STATIC CONST EFI_GUID mJunoAcpiTableFile = { 0xa1dd808e, 0x1e95, 0x4399, { 0xab, 0xc0, 0x65, 0x3c, 0x82, 0xe8, 0x53, 0x0c } }; -#endif - STATIC VOID *mAcpiRegistration = NULL; +#endif + STATIC VOID *mPciIoNotificationRegistration = NULL; /** -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'