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 <simone.ballarin@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: George Dunlap <george.dunlap@cloud.com>
This commit is contained in:
Simone Ballarin authored and Stefano Stabellini committed 2023-08-30 18:58:58 -07:00
1 parent 591fd09ffb
commit 1f2f5087c0
1 file changed
+6
+6
View File
@@ -3,6 +3,10 @@
*
*/
#ifndef __COMMON_SCHED_COMPAT_C__
#define __COMMON_SCHED_COMPAT_C__
#include <compat/sched.h>
#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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.