From nobody Mon Feb 9 19:53:36 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42932+1787277+3901457@groups.io ARC-Seal: i=1; a=rsa-sha256; t=1561641152; cv=none; d=zoho.com; s=zohoarc; b=fDvbVzT/jkQAHxMqJF8Egq0JDzgAG2uo0IUA/Ugy76d2CNRGOInGks4/f2/XZrshpUvQLVMotxWRZQ175UeS1eSk6sIJf+0PET4NOjk+06FxvEkKvw+mlltNnYaUeczvM0rE1diA+4hdA96T+3WXS1MUfA/d1rllr+HKOPs5EOQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1561641152; h=Content-Type:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To:ARC-Authentication-Results; bh=4U87PICmYF3OGqsVam/ilS9xbqiqO7s0NmGZQqrtj+c=; b=jqi025yPi6IUrjZLHO1cwcQxymhdwzHwNFXiD8qfJks2gE97f868yVbTUGE8/1OXi71yKkUrjUil66oGwK0O3gwEuRETlfmMDFH5JZjIwuohTnNWiExS/QZJ6fYchpnO9KkwOp9NZGlGsym6xIpwOSB3FfHriuGbFtLLoa1UoxA= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+42932+1787277+3901457@groups.io Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1561641152086597.7074279035825; Thu, 27 Jun 2019 06:12:32 -0700 (PDT) Return-Path: X-Received: from EUR03-VE1-obe.outbound.protection.outlook.com (EUR03-VE1-obe.outbound.protection.outlook.com [40.107.5.74]) by groups.io with SMTP; Thu, 27 Jun 2019 06:12:31 -0700 X-Received: from VI1PR0802CA0026.eurprd08.prod.outlook.com (2603:10a6:800:a9::12) by VE1PR08MB5037.eurprd08.prod.outlook.com (2603:10a6:803:115::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2008.16; Thu, 27 Jun 2019 13:12:27 +0000 X-Received: from VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e09::207) by VI1PR0802CA0026.outlook.office365.com (2603:10a6:800:a9::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.2008.16 via Frontend Transport; Thu, 27 Jun 2019 13:12:27 +0000 Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+42932+1787277+3901457@groups.io; helo=web01.groups.io; Received-SPF: TempError (protection.outlook.com: error in processing during lookup of arm.com: DNS Timeout) X-Received: from nebula.arm.com (40.67.248.234) by VE1EUR03FT057.mail.protection.outlook.com (10.152.19.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.2032.15 via Frontend Transport; Thu, 27 Jun 2019 13:12:25 +0000 X-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; Thu, 27 Jun 2019 13:12:21 +0000 X-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; Thu, 27 Jun 2019 13:12:20 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , Subject: [edk2-devel] [PATCH edk2-platforms 1/2] Platform/ARM: Juno: Fix usage of deprecated macros Date: Thu, 27 Jun 2019 14:12:12 +0100 Message-ID: <20190627131213.10972-2-sami.mujawar@arm.com> In-Reply-To: <20190627131213.10972-1-sami.mujawar@arm.com> References: <20190627131213.10972-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 765e5081-c977-473f-e1d8-08d6fb011929 X-MS-TrafficTypeDiagnostic: VE1PR08MB5037: NoDisclaimer: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1728; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Message-Info: QdUHxK80Ht2Bdg95q1HBr+oONcaq7XTzJ/pVZ+AsxeYZYBtBqjrf0BDcWcGwI0Ymv1KYst9lKHukPFR8OuBuzD9yjA4r4XUlt6e3swurWG2HckxKY7dO1CnMPZLLtJPQSEhcXYw+eAPymmYp8O7e/U70kAX3kD88Qy4NExwJB/XWzUBF4hLOqpTs+Fk1h1ksKEvLB+bmmWWoUjKsMbC7ufvZXx/ikKaEbSl5T5GuOB6sO7ph2sg+enTH/56FwMU4i25qAS3SAp5OPj1GV7vSOZVONrasJaOLpnK84s372EYTIbDwhyLBmwioMwX3/0exuJvg44UDLW/7pxgIljRVl6/bF74BA/SOIonODK149hBE61GDf665VVmm5AJ+cNCCSUyNqkENefWrurRYRW6BC2w7LuakNS9w1nMout/3cPM= X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2019 13:12:25.3656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 765e5081-c977-473f-e1d8-08d6fb011929 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[40.67.248.234];Helo=[nebula.arm.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR08MB5037 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,sami.mujawar@arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1561641151; bh=O5cS4jHFISf54Djqc2lTTssaQYvt42/DLqAvypYfoI0=; h=CC:Content-Type:Date:From:Reply-To:Subject:To; b=q7I4IVvQxj3nRcIomUqdCxVWJGUX7NdldinMOlZ2QawW9lZiJIFCUuiNEcVdh6iCkgk CAjlKPbYOmAFAaxKfLBx4Gb6ut+jdFZV3lYELrNmWs/rMy5XhyV8CjAebBUEvwPWGniH7 JrzO8o7ncffBwSy1/VkwkUiVOx/GgK/s3Cg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Replaced the use of unsafe/deprecated macros with alternate safe options. Signed-off-by: Sami Mujawar Reviewed-by: Alexei Fedorov --- Notes: v1: - Replace unsafe/deprecated macros with alternate safe options. [SAMI] Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Platform/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c b/Platfor= m/ARM/JunoPkg/Drivers/ArmJunoDxe/ArmJunoDxe.c index c5967f5b7112fbf794573a6040711a9f1cc14c9f..ea7591d704439cd4216f3e3d715= 5df2b4d2482b3 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-2017, ARM Limited. All rights reserved. +* Copyright (c) 2013-2019, ARM Limited. All rights reserved. * * SPDX-License-Identifier: BSD-2-Clause-Patent * @@ -407,7 +407,6 @@ ArmJunoEntryPoint ( EFI_PHYSICAL_ADDRESS HypBase; CHAR16 *TextDevicePath; UINTN TextDevicePathSize; - VOID *Buffer; UINT32 JunoRevision; EFI_EVENT EndOfDxeEvent; =20 @@ -495,7 +494,7 @@ ArmJunoEntryPoint ( // if (JunoRevision !=3D JUNO_REVISION_R0) { // Enable PCI enumeration - PcdSetBool (PcdPciDisableBusEnumeration, FALSE); + PcdSetBoolS (PcdPciDisableBusEnumeration, FALSE); =20 // // Create an event belonging to the "gEfiEndOfDxeEventGroupGuid" group. @@ -531,8 +530,11 @@ ArmJunoEntryPoint ( TextDevicePath =3D (CHAR16*)FixedPcdGetPtr (PcdJunoFdtDevicePath); if (TextDevicePath !=3D NULL) { TextDevicePathSize =3D StrSize (TextDevicePath); - Buffer =3D PcdSetPtr (PcdFdtDevicePaths, &TextDevicePathSize, TextDevi= cePath); - Status =3D (Buffer !=3D NULL) ? EFI_SUCCESS : EFI_BUFFER_TOO_SMALL; + Status =3D PcdSetPtrS ( + PcdFdtDevicePaths, + &TextDevicePathSize, + TextDevicePath + ); } else { Status =3D EFI_NOT_FOUND; } --=20 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)' -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#42932): https://edk2.groups.io/g/devel/message/42932 Mute This Topic: https://groups.io/mt/32230897/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-