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 <bret.barkelew@microsoft.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Pierre Gondois <Pierre.Gondois@arm.com>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
Pierre Gondois
2021-04-20 12:00:23 +01:00
committed by mergify[bot]
parent 5b90b8abb4
commit cc15a619a6
33 changed files with 99 additions and 99 deletions

View File

@@ -8,8 +8,8 @@
**/
#ifndef __AARCH64_LIB_H__
#define __AARCH64_LIB_H__
#ifndef AARCH64_LIB_H_
#define AARCH64_LIB_H_
typedef VOID (*AARCH64_CACHE_OPERATION)(UINTN);
@@ -52,5 +52,5 @@ ArmReadIdAA64Mmfr2 (
VOID
);
#endif // __AARCH64_LIB_H__
#endif // AARCH64_LIB_H_

View File

@@ -6,8 +6,8 @@
**/
#ifndef __ARM_V7_LIB_H__
#define __ARM_V7_LIB_H__
#ifndef ARM_V7_LIB_H_
#define ARM_V7_LIB_H_
#define ID_MMFR0_SHARELVL_SHIFT 12
#define ID_MMFR0_SHARELVL_MASK 0xf
@@ -64,5 +64,5 @@ ArmReadIdPfr1 (
VOID
);
#endif // __ARM_V7_LIB_H__
#endif // ARM_V7_LIB_H_

View File

@@ -8,8 +8,8 @@
**/
#ifndef __ARM_LIB_PRIVATE_H__
#define __ARM_LIB_PRIVATE_H__
#ifndef ARM_LIB_PRIVATE_H_
#define ARM_LIB_PRIVATE_H_
#define CACHE_SIZE_4_KB (3UL)
#define CACHE_SIZE_8_KB (4UL)
@@ -186,4 +186,4 @@ ReadCLIDR (
VOID
);
#endif // __ARM_LIB_PRIVATE_H__
#endif // ARM_LIB_PRIVATE_H_

View File

@@ -7,8 +7,8 @@
**/
#ifndef _OPTEE_SMC_H_
#define _OPTEE_SMC_H_
#ifndef OPTEE_SMC_H_
#define OPTEE_SMC_H_
/* Returned in Arg0 only from Trusted OS functions */
#define OPTEE_SMC_RETURN_OK 0x0
@@ -47,4 +47,4 @@ typedef struct {
UINT8 Data4[8];
} RFC4122_UUID;
#endif
#endif // OPTEE_SMC_H_

View File

@@ -9,8 +9,8 @@
**/
#ifndef _PLATFORM_BM_H_
#define _PLATFORM_BM_H_
#ifndef PLATFORM_BM_H_
#define PLATFORM_BM_H_
#include <Library/BaseLib.h>
#include <Library/BaseMemoryLib.h>
@@ -50,4 +50,4 @@ DisableQuietBoot (
VOID
);
#endif // _PLATFORM_BM_H_
#endif // PLATFORM_BM_H_

View File

@@ -7,8 +7,8 @@
**/
#ifndef __SEMIHOST_PRIVATE_H__
#define __SEMIHOST_PRIVATE_H__
#ifndef SEMIHOST_PRIVATE_H_
#define SEMIHOST_PRIVATE_H_
typedef struct {
CHAR8 *FileName;
@@ -209,4 +209,4 @@ GccSemihostCall (
#endif // __CC_ARM
#endif //__SEMIHOST_PRIVATE_H__
#endif // SEMIHOST_PRIVATE_H_