svm/emulate: remove duplicated const specifier
authorWei Liu <wei.liu2@citrix.com>
Fri, 30 Sep 2016 15:47:17 +0000 (16:47 +0100)
committerWei Liu <wei.liu2@citrix.com>
Fri, 30 Sep 2016 15:54:28 +0000 (16:54 +0100)
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 <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/svm/emulate.c

index 7f6401fe53cabebaa02dc4b8478e2de596e6b823..36585b0869619a83f91120355d1edf6b1ef9c075 100644 (file)
@@ -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) },