[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v2 5/6] plat/common: Add macro to avoid nested including header file



This is to add the macro to avoid avoid nested including header file
plat/common/include/arm/arm64/cpu.h

Signed-off-by: Jia He <justin.he@xxxxxxx>
---
 plat/common/include/arm/arm64/cpu.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/plat/common/include/arm/arm64/cpu.h 
b/plat/common/include/arm/arm64/cpu.h
index 23adf8d..ff33f7c 100644
--- a/plat/common/include/arm/arm64/cpu.h
+++ b/plat/common/include/arm/arm64/cpu.h
@@ -32,6 +32,9 @@
  * THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
  */
 
+#ifndef __PLAT_COMMON_ARM64_CPU_H__
+#define __PLAT_COMMON_ARM64_CPU_H__
+
 #include <inttypes.h>
 #include <uk/essentials.h>
 #include <sw_ctx.h>
@@ -136,3 +139,5 @@ static inline void arch_init_extregs(struct sw_ctx *ctx)
 {
        ctx->extregs = (uintptr_t)ctx + sizeof(struct sw_ctx);
 }
+
+#endif /* __PLAT_COMMON_ARM64_CPU_H__ */
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.