[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen master] xen/lz4: address violations of MISRA C:2012 Directive 4.10
commit 3945b61ddb6b2e9f0226ebe4112d4d81463dfac7 Author: Maria Celeste Cesario <maria.celeste.cesario@xxxxxxxxxxx> AuthorDate: Thu Mar 14 13:52:46 2024 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Thu Mar 14 13:52:46 2024 +0100 xen/lz4: address violations of MISRA C:2012 Directive 4.10 Add inclusion guard 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: Maria Celeste Cesario <maria.celeste.cesario@xxxxxxxxxxx> Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> --- xen/common/lz4/defs.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/common/lz4/defs.h b/xen/common/lz4/defs.h index 6d81113266..ecfbf07f83 100644 --- a/xen/common/lz4/defs.h +++ b/xen/common/lz4/defs.h @@ -8,6 +8,9 @@ * published by the Free Software Foundation. */ +#ifndef COMMON_LZ4_DEFS_H +#define COMMON_LZ4_DEFS_H + #ifdef __XEN__ #include <asm/byteorder.h> #include <xen/unaligned.h> @@ -166,3 +169,5 @@ typedef struct _U64_S { u64 v; } U64_S; LZ4_WILDCOPY(s, d, e); \ d = e; \ } while (0) + +#endif /* COMMON_LZ4_DEFS_H */ -- generated by git-patchbot for /home/xen/git/xen.git#master
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |