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

[Minios-devel] [UNIKRAFT PATCH 3/6] plat/common: add include guards to include/x86/cpu.h



Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
---
 plat/common/include/x86/cpu.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/plat/common/include/x86/cpu.h b/plat/common/include/x86/cpu.h
index 04d8731..001e9ca 100644
--- a/plat/common/include/x86/cpu.h
+++ b/plat/common/include/x86/cpu.h
@@ -27,8 +27,10 @@
  * CPU related macros and definitions copied from mini-os/os.h
  */
 
-#include <uk/arch/types.h>
+#ifndef __PLAT_COMMON_X86_CPU_H__
+#define __PLAT_COMMON_X86_CPU_H__
 
+#include <uk/arch/types.h>
 
 void halt(void);
 void system_off(void);
@@ -140,3 +142,5 @@ static inline __u64 mul64_32(__u64 a, __u32 b)
 
        return prod;
 }
+
+#endif /* __PLAT_COMMON_X86_CPU_H__ */
-- 
2.19.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®.