]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
x86/p2m.h: Add include guards
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 9 May 2022 10:17:35 +0000 (11:17 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 15 Jun 2023 09:51:57 +0000 (10:51 +0100)
Spotted by Eclair MISRA scanner.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/x86/mm/p2m.h

index 11e63b8fe42ac54164cdd0fc1ced270f78ddd105..04308cfb6d9c89ee6848714aecd4da05dd20c327 100644 (file)
@@ -3,6 +3,9 @@
  * arch/x86/mm/p2m.h
  */
 
+#ifndef __ARCH_MM_P2M_H__
+#define __ARCH_MM_P2M_H__
+
 struct p2m_domain *p2m_init_one(struct domain *d);
 void p2m_free_one(struct p2m_domain *p2m);
 
@@ -27,6 +30,8 @@ int ept_p2m_init(struct p2m_domain *p2m);
 void ept_p2m_uninit(struct p2m_domain *p2m);
 void p2m_init_altp2m_ept(struct domain *d, unsigned int i);
 
+#endif /* __ARCH_MM_P2M_H__ */
+
 /*
  * Local variables:
  * mode: C