xsm/dummy: fix MISRA C 2012 Directive 4.10 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Fri, 29 Jul 2022 06:50:58 +0000 (08:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 29 Jul 2022 06:50:58 +0000 (08:50 +0200)
Protect header file from being included more than once by adding ifndef guard.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/include/xsm/dummy.h

index 77f27e71634220dff90d4c131162b98cf565c9d3..8671af1ba4d39fc7141bc7996f61cb07bb15916f 100644 (file)
@@ -15,6 +15,9 @@
  *  value of action.
  */
 
+#ifndef __XEN_XSM_DUMMY_H__
+#define __XEN_XSM_DUMMY_H__
+
 #include <xen/sched.h>
 #include <xsm/xsm.h>
 #include <public/hvm/params.h>
@@ -843,3 +846,5 @@ static XSM_INLINE int cf_check xsm_domain_resource_map(
     XSM_ASSERT_ACTION(XSM_DM_PRIV);
     return xsm_default_action(action, current->domain, d);
 }
+
+#endif /* __XEN_XSM_DUMMY_H__ */