summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorQian Cai <cai@lca.pw>2020-02-17 11:48:26 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2020-02-20 18:13:45 +0100
commitb78a8552d77f8efb7c4fbd92a91b890c32b89528 (patch)
tree5bf5aad251b9b2b4b9b4e964cb9d05a465165d51 /net
parent147f1a1fe5d7e6b01b8df4d0cbd6f9eaf6b6c73b (diff)
downloadlinux-b78a8552d77f8efb7c4fbd92a91b890c32b89528.tar.bz2
kvm/emulate: fix a -Werror=cast-function-type
arch/x86/kvm/emulate.c: In function 'x86_emulate_insn': arch/x86/kvm/emulate.c:5686:22: error: cast between incompatible function types from 'int (*)(struct x86_emulate_ctxt *)' to 'void (*)(struct fastop *)' [-Werror=cast-function-type] rc = fastop(ctxt, (fastop_t)ctxt->execute); Fix it by using an unnamed union of a (*execute) function pointer and a (*fastop) function pointer. Fixes: 3009afc6e39e ("KVM: x86: Use a typedef for fastop functions") Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Qian Cai <cai@lca.pw> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions