aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/kvm/lib/kvm_util.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-06-13 16:19:40 +0000
committerPaolo Bonzini <[email protected]>2022-06-14 12:44:46 -0400
commitad125f309850b9cf2ba4f39729c5cc827595fac4 (patch)
treeca8fb7f421b1af37becb90e2c0955a4fb3e3ead5 /tools/testing/selftests/kvm/lib/kvm_util.c
parent4f48e2e737451365bc81c3b6283036a9079bcc24 (diff)
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 <[email protected]> Fixes: fcba483e8246 ("KVM: selftests: Sanity check input to ioctls() at build time") Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/kvm_util.c')
0 files changed, 0 insertions, 0 deletions