From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.63.1608139359220442984 for ; Wed, 16 Dec 2020 09:22:39 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: arm.com, ip: 217.140.110.172, mailfrom: pierre.gondois@arm.com) 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 EBB991FB; Wed, 16 Dec 2020 09:22:38 -0800 (PST) Received: from e120189.arm.com (unknown [10.57.25.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CFA203F66E; Wed, 16 Dec 2020 09:22:37 -0800 (PST) From: "PierreGondois" To: devel@edk2.groups.io, ard.biesheuvel@arm.com, leif@nuviainc.com Cc: sami.mujawar@arm.com Subject: [PATCH v1 12/25] ArmPkg: Fix Ecc error 5005 in ArmExceptionLib Date: Wed, 16 Dec 2020 17:21:47 +0000 Message-Id: <20201216172200.25846-13-Pierre.Gondois@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201216172200.25846-1-Pierre.Gondois@arm.com> References: <20201216172200.25846-1-Pierre.Gondois@arm.com> From: Pierre Gondois This patch fixes the following Ecc reported error: The body of a function should be contained by open and close braces that must be in the first column Signed-off-by: Pierre Gondois --- The changes can be seen at: https://github.com/PierreARM/edk2/commits/1552_Ecc_ArmPkg_v1 ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c b/ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c index 1ff90dede57f..0fba64a17507 100644 --- a/ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c +++ b/ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c @@ -2,7 +2,7 @@ * Main file supporting the SEC Phase for Versatile Express * * Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.
-* Copyright (c) 2011-2014, ARM Limited. All rights reserved. +* Copyright (c) 2011-2020, Arm Limited. All rights reserved.
* Copyright (c) 2016 HP Development Company, L.P. * * SPDX-License-Identifier: BSD-2-Clause-Patent @@ -253,7 +253,8 @@ RETURN_STATUS RegisterCpuInterruptHandler( IN EFI_EXCEPTION_TYPE ExceptionType, IN EFI_CPU_INTERRUPT_HANDLER ExceptionHandler - ) { + ) +{ if (ExceptionType > gMaxExceptionNumber) { return RETURN_UNSUPPORTED; } -- 2.17.1