From cc15a619a6fe527b6a00cbea3a0359a9c9c8602b Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Tue, 20 Apr 2021 12:00:23 +0100 Subject: ArmPkg: Fix Ecc error 8003 This patch fixes the following Ecc reported error: The #ifndef at the start of an include file should have one postfix underscore, and no prefix underscore character Some include guards have been modified to match the name of the header file. Some comments have also been added on the closing '#endif'. Cc: Bret Barkelew Cc: Sean Brogan Cc: Leif Lindholm Cc: Ard Biesheuvel Cc: Sami Mujawar Signed-off-by: Pierre Gondois Reviewed-by: Sami Mujawar --- ArmPkg/Include/IndustryStandard/ArmMmSvc.h | 6 +++--- ArmPkg/Include/IndustryStandard/ArmStdSmc.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ArmPkg/Include/IndustryStandard') diff --git a/ArmPkg/Include/IndustryStandard/ArmMmSvc.h b/ArmPkg/Include/IndustryStandard/ArmMmSvc.h index 71a5398558..33d60ccf17 100644 --- a/ArmPkg/Include/IndustryStandard/ArmMmSvc.h +++ b/ArmPkg/Include/IndustryStandard/ArmMmSvc.h @@ -6,8 +6,8 @@ * **/ -#ifndef __ARM_MM_SVC_H__ -#define __ARM_MM_SVC_H__ +#ifndef ARM_MM_SVC_H_ +#define ARM_MM_SVC_H_ /* * SVC IDs to allow the MM secure partition to initialise itself, handle @@ -44,4 +44,4 @@ #define SPM_MAJOR_VERSION 0 #define SPM_MINOR_VERSION 1 -#endif +#endif // ARM_MM_SVC_H_ diff --git a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h index 9e0a3a3960..67afb0ea2d 100644 --- a/ArmPkg/Include/IndustryStandard/ArmStdSmc.h +++ b/ArmPkg/Include/IndustryStandard/ArmStdSmc.h @@ -10,8 +10,8 @@ * (https://developer.arm.com/documentation/den0028/c/?lang=en) **/ -#ifndef __ARM_STD_SMC_H__ -#define __ARM_STD_SMC_H__ +#ifndef ARM_STD_SMC_H_ +#define ARM_STD_SMC_H_ /* * SMC function IDs for Standard Service queries @@ -129,4 +129,4 @@ /* 0xbf00ff02 is reserved */ #define ARM_SMC_ID_TOS_REVISION 0xbf00ff03 -#endif +#endif // ARM_STD_SMC_H_ -- cgit v1.2.3