summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/kvm_util.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-06-13 16:19:40 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-06-14 12:44:46 -0400
commitad125f309850b9cf2ba4f39729c5cc827595fac4 (patch)
treeca8fb7f421b1af37becb90e2c0955a4fb3e3ead5 /tools/testing/selftests/kvm/lib/kvm_util.c
parent4f48e2e737451365bc81c3b6283036a9079bcc24 (diff)
downloadlinux-ad125f309850b9cf2ba4f39729c5cc827595fac4.tar.bz2
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