diff options
| author | Paolo Bonzini <[email protected]> | 2023-01-22 09:04:50 +0000 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2023-01-22 09:08:33 +0000 |
| commit | 50aa870ba2f7735f556e52d15f61cd0f359c4c0b (patch) | |
| tree | 5b1084ead51913f0f04b8fdaa6ba6f54f6c63754 /drivers/fpga/fpga-bridge.c | |
| parent | Merge tag 'kvmarm-fixes-6.2-2' of git://git.kernel.org/pub/scm/linux/kernel/g... (diff) | |
| download | kernel-50aa870ba2f7735f556e52d15f61cd0f359c4c0b.tar.gz kernel-50aa870ba2f7735f556e52d15f61cd0f359c4c0b.zip | |
selftests: kvm: move declaration at the beginning of main()
Placing a declaration of evt_reset is pedantically invalid
according to the C standard. While GCC does not really care
and only warns with -Wpedantic, clang ignores the declaration
altogether with an error:
x86_64/xen_shinfo_test.c:965:2: error: expected expression
struct kvm_xen_hvm_attr evt_reset = {
^
x86_64/xen_shinfo_test.c:969:38: error: use of undeclared identifier evt_reset
vm_ioctl(vm, KVM_XEN_HVM_SET_ATTR, &evt_reset);
^
Reported-by: Yu Zhang <[email protected]>
Reported-by: Sean Christopherson <[email protected]>
Fixes: a79b53aaaab5 ("KVM: x86: fix deadlock for KVM_XEN_EVTCHN_RESET", 2022-12-28)
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions
