diff options
| author | Sean Christopherson <seanjc@google.com> | 2022-06-13 16:19:40 +0000 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-14 12:44:46 -0400 |
| commit | ad125f309850b9cf2ba4f39729c5cc827595fac4 (patch) | |
| tree | ca8fb7f421b1af37becb90e2c0955a4fb3e3ead5 /tools/testing/selftests/kvm/lib/kvm_util.c | |
| parent | KVM: selftests: Add a missing apostrophe in comment to show ownership (diff) | |
| download | linux-ad125f309850b9cf2ba4f39729c5cc827595fac4.tar.gz linux-ad125f309850b9cf2ba4f39729c5cc827595fac4.zip | |
KVM: selftests: Call a dummy helper in VM/vCPU ioctls() to enforce type
Replace the goofy static_assert on the size of the @vm/@vcpu parameters
with a call to a dummy helper, i.e. let the compiler naturally complain
about an incompatible type instead of homebrewing a poor replacement.
Reported-by: Andrew Jones <drjones@redhat.com>
Fixes: fcba483e8246 ("KVM: selftests: Sanity check input to ioctls() at build time")
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220613161942.1586791-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
0 files changed, 0 insertions, 0 deletions
