From: Wei Liu Date: Fri, 30 Sep 2016 15:47:17 +0000 (+0100) Subject: svm/emulate: remove duplicated const specifier X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~217 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4b997d7aa8f82b5f7b0757bb6b73546dc98714a3;p=xen.git svm/emulate: remove duplicated const specifier Clang complains: emulate.c:65:3: error: duplicate 'const' declaration specifier [-Werror,-Wduplicate-decl-specifier] } const opc_tab[INSTR_MAX_COUNT] = { ^ Remove that const to fix the issue. Signed-off-by: Wei Liu Reviewed-by: Andrew Cooper --- diff --git a/xen/arch/x86/hvm/svm/emulate.c b/xen/arch/x86/hvm/svm/emulate.c index 7f6401fe53..36585b0869 100644 --- a/xen/arch/x86/hvm/svm/emulate.c +++ b/xen/arch/x86/hvm/svm/emulate.c @@ -62,7 +62,7 @@ static const struct { unsigned int mod:2; #define MODRM(mod, reg, rm) { rm, reg, mod } } modrm; -} const opc_tab[INSTR_MAX_COUNT] = { +} opc_tab[INSTR_MAX_COUNT] = { [INSTR_PAUSE] = { X86EMUL_OPC_F3(0, 0x90) }, [INSTR_INT3] = { X86EMUL_OPC( 0, 0xcc) }, [INSTR_HLT] = { X86EMUL_OPC( 0, 0xf4) },