From ba1b034e1ef362936fbb855b2a45766b9827e688 Mon Sep 17 00:00:00 2001 From: "huihuang.shi" Date: Wed, 30 May 2018 10:25:21 +0800 Subject: [PATCH] fix MISRA-C 243S Included file not protected with #define, this feature is required. Signed-off-by: huihuang.shi --- hypervisor/arch/x86/guest/instr_emul_wrapper.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hypervisor/arch/x86/guest/instr_emul_wrapper.h b/hypervisor/arch/x86/guest/instr_emul_wrapper.h index 6eed6a20d..8ff49f9bf 100644 --- a/hypervisor/arch/x86/guest/instr_emul_wrapper.h +++ b/hypervisor/arch/x86/guest/instr_emul_wrapper.h @@ -27,6 +27,8 @@ * $FreeBSD$ */ +#ifndef INSTR_EMUL_WRAPPER_H +#define INSTR_EMUL_WRAPPER_H #include struct vie_op { @@ -186,3 +188,4 @@ int vm_get_seg_desc(struct vcpu *vcpu, int reg, int vm_set_seg_desc(struct vcpu *vcpu, int reg, struct seg_desc *desc); int vm_restart_instruction(struct vcpu *vcpu); +#endif