diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-08 10:20:19 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-08 10:20:19 +0000 |
commit | c3cf06f1a3a9b9ee8ac7a0ae505f95c45f7dca84 (patch) | |
tree | a10cbb4dba8a33d5a444ed37486f013f19eab635 /services/std_svc | |
parent | f5ae1b0e098277a5b02a823a23f61577e53eadf2 (diff) |
Standardise header guards across codebase
All identifiers, regardless of use, that start with two underscores are
reserved. This means they can't be used in header guards.
The style that this project is now to use the full name of the file in
capital letters followed by 'H'. For example, for a file called
"uart_example.h", the header guard is UART_EXAMPLE_H.
The exceptions are files that are imported from other projects:
- CryptoCell driver
- dt-bindings folders
- zlib headers
Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'services/std_svc')
-rw-r--r-- | services/std_svc/spm/spm_private.h | 6 | ||||
-rw-r--r-- | services/std_svc/spm/spm_shim_private.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/services/std_svc/spm/spm_private.h b/services/std_svc/spm/spm_private.h index f094739f..ec3f48ea 100644 --- a/services/std_svc/spm/spm_private.h +++ b/services/std_svc/spm/spm_private.h @@ -4,8 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __SPM_PRIVATE_H__ -#define __SPM_PRIVATE_H__ +#ifndef SPM_PRIVATE_H +#define SPM_PRIVATE_H #include <context.h> @@ -67,4 +67,4 @@ int spm_memory_attributes_set_smc_handler(sp_context_t *sp_ctx, #endif /* __ASSEMBLY__ */ -#endif /* __SPM_PRIVATE_H__ */ +#endif /* SPM_PRIVATE_H */ diff --git a/services/std_svc/spm/spm_shim_private.h b/services/std_svc/spm/spm_shim_private.h index e65ac44d..f2a7e052 100644 --- a/services/std_svc/spm/spm_shim_private.h +++ b/services/std_svc/spm/spm_shim_private.h @@ -4,8 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __SPM_SHIM_PRIVATE__ -#define __SPM_SHIM_PRIVATE__ +#ifndef SPM_SHIM_PRIVATE_H +#define SPM_SHIM_PRIVATE_H #include <stdint.h> #include <utils_def.h> @@ -22,4 +22,4 @@ IMPORT_SYM(uintptr_t, __SPM_SHIM_EXCEPTIONS_END__, SPM_SHIM_EXCEPTIONS_END); #define SPM_SHIM_EXCEPTIONS_SIZE \ (SPM_SHIM_EXCEPTIONS_END - SPM_SHIM_EXCEPTIONS_START) -#endif /* __SPM_SHIM_PRIVATE__ */ +#endif /* SPM_SHIM_PRIVATE_H */ |