[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] svm/emulate: remove duplicated const specifier
On 30/09/16 16:47, Wei Liu wrote: > 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@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> > --- > xen/arch/x86/hvm/svm/emulate.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/xen/arch/x86/hvm/svm/emulate.c b/xen/arch/x86/hvm/svm/emulate.c > index 7f6401f..36585b0 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) }, _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |