[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] svm/emulate: remove duplicated const specifier



commit 4b997d7aa8f82b5f7b0757bb6b73546dc98714a3
Author:     Wei Liu <wei.liu2@xxxxxxxxxx>
AuthorDate: Fri Sep 30 16:47:17 2016 +0100
Commit:     Wei Liu <wei.liu2@xxxxxxxxxx>
CommitDate: Fri Sep 30 16:54:28 2016 +0100

    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 <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) },
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.