From nobody Mon Feb 9 20:32:29 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+72057+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+72057+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1614086063; cv=none; d=zohomail.com; s=zohoarc; b=oE/QjPRzYLXvt8w8LYUJdIV35Sq3sP/1oWLEvgykuFxAQfuGMuA9ZY8IQS9aQHVzThzbOdmThqrIgp6DE2RGG/STeGStskrCWng93ubtEOl3YNQcohdveLQ0PMd2gox0TZpcWWe2tGS5a2jmVJIfA06WnDGcqOc9bizD0rtdfrc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1614086063; h=Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=k0FHZAKVz9Azatv/WnAEOKB3CJ6IH3CsZl1qXmYMnWI=; b=migOqKD04B3A0SBI/zDJNTzq3Fl38WIKlf8om7Mhi9yA4COWg4dHaqHeGZHLnNG9Pl1HA8hpJwjMFQGM/C+yY4gN+LHXa58s4756ldliAJkYJk/lETSrLa4oLkACbSzox2ihlFepTLcCf5CtrnxOX7QHMlBLfMurpr9qXdPVUO4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+72057+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 161408606370478.44537930692093; Tue, 23 Feb 2021 05:14:23 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id VJVJYY1788612xfElewMaWXl; Tue, 23 Feb 2021 05:14:23 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web12.9497.1614086062910463315 for ; Tue, 23 Feb 2021 05:14:23 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 85B8A101E; Tue, 23 Feb 2021 05:14:22 -0800 (PST) X-Received: from e120189.arm.com (unknown [10.57.9.161]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C33EF3F70D; Tue, 23 Feb 2021 05:14:21 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, ardb+tianocore@kernel.org, leif@nuviainc.com, sami.mujawar@arm.com Subject: [edk2-devel] [PATCH v3 03/26] ArmPkg: Fix Ecc error 8001 in ArmArchTimerLib Date: Tue, 23 Feb 2021 13:13:43 +0000 Message-Id: <20210223131406.3484-4-Pierre.Gondois@arm.com> In-Reply-To: <20210223131406.3484-1-Pierre.Gondois@arm.com> References: <20210223131406.3484-1-Pierre.Gondois@arm.com> 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,pierre.gondois@arm.com X-Gm-Message-State: EkljhzsBI4NjR3VNGHha6qrIx1787277AA= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1614086063; bh=BzPKmraYsDS4JxXHc4uGh97uMS3m5kEgUZKd+B2hMD4=; h=Date:From:Reply-To:Subject:To; b=MquhRoOoAHXl40pMmsgDR3oWe+65onp4hDT7w3nu0uGOHO3JrfUhghU7GfHEFYO/3Zv mrcfUMDhE3Lx6V3I/OrP2MPEzvBTsmTFuVIpj1XrA7/5LX7JFzSX/QcCOatZRnGt/CXqy N80kiiEErJleawRgfioacNNJ3A5Bln3iJTw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Pierre Gondois This patch fixes the following Ecc reported error: Only capital letters are allowed to be used for #define declarations Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar --- The changes can be seen at: https://github.com/PierreARM/edk2/tree/1552_Ecc= _ArmPkg_BIS_v3 ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c b/ArmPkg/Libr= ary/ArmArchTimerLib/ArmArchTimerLib.c index 24d9dae4e660..875c835706d6 100644 --- a/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c +++ b/ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c @@ -1,7 +1,7 @@ /** @file Generic ARM implementation of TimerLib.h =20 - Copyright (c) 2011-2016, ARM Limited. All rights reserved. + Copyright (c) 2011 - 2021, Arm Limited. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -20,9 +20,9 @@ =20 // Select appropriate multiply function for platform architecture. #ifdef MDE_CPU_ARM -#define MultU64xN MultU64x32 +#define MULT_U64_X_N MultU64x32 #else -#define MultU64xN MultU64x64 +#define MULT_U64_X_N MultU64x64 #endif =20 =20 @@ -121,7 +121,7 @@ MicroSecondDelay ( // =3D MicroSeconds x TICKS_PER_MICRO_SEC // =3D MicroSeconds x Frequency.10^-6 TimerTicks64 =3D DivU64x32 ( - MultU64xN ( + MULT_U64_X_N ( MicroSeconds, GetPlatformTimerFreq () ), @@ -263,7 +263,7 @@ GetTimeInNanoSecond ( // Time =3D --------- x 1,000,000,000 // Frequency // - NanoSeconds =3D MultU64xN ( + NanoSeconds =3D MULT_U64_X_N ( DivU64x32Remainder ( Ticks, TimerFreq, @@ -276,7 +276,7 @@ GetTimeInNanoSecond ( // will not overflow 64-bit. // NanoSeconds +=3D DivU64x32 ( - MultU64xN ( + MULT_U64_X_N ( (UINT64) Remainder, 1000000000U), TimerFreq --=20 2.17.1 -=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 (#72057): https://edk2.groups.io/g/devel/message/72057 Mute This Topic: https://groups.io/mt/80850069/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-