[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XEN PATCH v3 15/16] x86/mtrr: address violations of MISRA C:2012 Directive 4.10
From: Maria Celeste Cesario <maria.celeste.cesario@xxxxxxxxxxx> 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. --- Commit introduced in v3 Signed-off-by: Maria Celeste Cesario <maria.celeste.cesario@xxxxxxxxxxx> Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx> --- xen/arch/x86/cpu/mtrr/mtrr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xen/arch/x86/cpu/mtrr/mtrr.h b/xen/arch/x86/cpu/mtrr/mtrr.h index a9741e0cb0..632bf658be 100644 --- a/xen/arch/x86/cpu/mtrr/mtrr.h +++ b/xen/arch/x86/cpu/mtrr/mtrr.h @@ -1,6 +1,8 @@ /* * local mtrr defines. */ +#ifndef X86_CPU_MTRR_MTRR_H +#define X86_CPU_MTRR_MTRR_H #define MTRR_CHANGE_MASK_FIXED 0x01 #define MTRR_CHANGE_MASK_VARIABLE 0x02 @@ -25,3 +27,5 @@ extern u64 size_or_mask, size_and_mask; extern unsigned int num_var_ranges; void mtrr_state_warn(void); + +#endif /* X86_CPU_MTRR_MTRR_H */ -- 2.34.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |