All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/xsm: dummy.h: Fix MISRA C 2012 Directive 4.10 violation
@ 2022-07-27 15:19 Xenia Ragiadakou
  2022-07-28  7:44 ` Luca Fancellu
  2022-07-28 13:48 ` Daniel P. Smith
  0 siblings, 2 replies; 3+ messages in thread
From: Xenia Ragiadakou @ 2022-07-27 15:19 UTC (permalink / raw)
  To: xen-devel; +Cc: Daniel P. Smith

Protect header file from being included more than once by adding ifndef guard.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
---
 xen/include/xsm/dummy.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/xen/include/xsm/dummy.h b/xen/include/xsm/dummy.h
index 77f27e7163..8671af1ba4 100644
--- a/xen/include/xsm/dummy.h
+++ b/xen/include/xsm/dummy.h
@@ -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__ */
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen/xsm: dummy.h: Fix MISRA C 2012 Directive 4.10 violation
  2022-07-27 15:19 [PATCH] xen/xsm: dummy.h: Fix MISRA C 2012 Directive 4.10 violation Xenia Ragiadakou
@ 2022-07-28  7:44 ` Luca Fancellu
  2022-07-28 13:48 ` Daniel P. Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Luca Fancellu @ 2022-07-28  7:44 UTC (permalink / raw)
  To: Xenia Ragiadakou; +Cc: xen-devel, Daniel P. Smith



> On 27 Jul 2022, at 16:19, Xenia Ragiadakou <burzalodowa@gmail.com> wrote:
> 
> Protect header file from being included more than once by adding ifndef guard.
> 
> Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>

It makes sense!

Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] xen/xsm: dummy.h: Fix MISRA C 2012 Directive 4.10 violation
  2022-07-27 15:19 [PATCH] xen/xsm: dummy.h: Fix MISRA C 2012 Directive 4.10 violation Xenia Ragiadakou
  2022-07-28  7:44 ` Luca Fancellu
@ 2022-07-28 13:48 ` Daniel P. Smith
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel P. Smith @ 2022-07-28 13:48 UTC (permalink / raw)
  To: Xenia Ragiadakou, xen-devel

On 7/27/22 11:19, Xenia Ragiadakou wrote:
> Protect header file from being included more than once by adding ifndef guard.
> 
> Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
> ---
>   xen/include/xsm/dummy.h | 5 +++++
>   1 file changed, 5 insertions(+)
> 
> diff --git a/xen/include/xsm/dummy.h b/xen/include/xsm/dummy.h
> index 77f27e7163..8671af1ba4 100644
> --- a/xen/include/xsm/dummy.h
> +++ b/xen/include/xsm/dummy.h
> @@ -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__ */

Acked-by: Daniel P. Smith <dpsmith@apertussolutions.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-28 13:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-27 15:19 [PATCH] xen/xsm: dummy.h: Fix MISRA C 2012 Directive 4.10 violation Xenia Ragiadakou
2022-07-28  7:44 ` Luca Fancellu
2022-07-28 13:48 ` Daniel P. Smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.