From 1f2f5087c0bbc8c6219e5ce33e5bf17575f1cc00 Mon Sep 17 00:00:00 2001 From: Simone Ballarin Date: Mon, 28 Aug 2023 15:20:08 +0200 Subject: [PATCH] xen/sched: address violations of MISRA C:2012 Directive 4.10 Add inclusion guards to address violations of MISRA C:2012 Directive 4.10 ("Precautions shall be taken in order to prevent the contents of a header file being included more than once"). Mechanical change. Signed-off-by: Simone Ballarin Reviewed-by: Stefano Stabellini Reviewed-by: George Dunlap --- xen/common/sched/compat.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/common/sched/compat.c b/xen/common/sched/compat.c index a596e3a226..d718e450d4 100644 --- a/xen/common/sched/compat.c +++ b/xen/common/sched/compat.c @@ -3,6 +3,10 @@ * */ +#ifndef __COMMON_SCHED_COMPAT_C__ +#define __COMMON_SCHED_COMPAT_C__ + + #include #define COMPAT @@ -44,6 +48,8 @@ int compat_set_timer_op(uint32_t lo, int32_t hi) return do_set_timer_op(((s64)hi << 32) | lo); } +#endif /* __COMMON_SCHED_COMPAT_C__ */ + /* * Local variables: * mode: C