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 <[email protected]>
Reviewed-by: Andrew Cooper <[email protected]>
> ---
> 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
[email protected]
https://lists.xen.org/xen-devel