diff options
author | Nick Desaulniers <nick.desaulniers@gmail.com> | 2017-06-27 19:37:14 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-06-30 12:45:55 +0200 |
commit | 8616abc253793345a245d026c7a0cc11fbc3abd8 (patch) | |
tree | 2d45764247b2662b836054de8dc9f5260efe3638 /arch/x86/kvm/emulate.c | |
parent | 04a7ea04d508b925e7f829305b358157d58b4f82 (diff) | |
download | linux-8616abc253793345a245d026c7a0cc11fbc3abd8.tar.bz2 |
KVM: x86: remove ignored type attribute
The macro insn_fetch marks the 'type' argument as having a specified
alignment. Type attributes can only be applied to structs, unions, or
enums, but insn_fetch is only ever invoked with integral types, so Clang
produces 19 -Wignored-attributes warnings for this source file.
Signed-off-by: Nick Desaulniers <nick.desaulniers@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 0f0815c824de..4a38b9656391 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -900,7 +900,7 @@ static __always_inline int do_insn_fetch_bytes(struct x86_emulate_ctxt *ctxt, if (rc != X86EMUL_CONTINUE) \ goto done; \ ctxt->_eip += sizeof(_type); \ - _x = *(_type __aligned(1) *) ctxt->fetch.ptr; \ + memcpy(&_x, ctxt->fetch.ptr, sizeof(_type)); \ ctxt->fetch.ptr += sizeof(_type); \ _x; \ }) |