]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Return an 'unsigned int' from kvm_check_cap()
authorSean Christopherson <seanjc@google.com>
Fri, 27 May 2022 22:09:52 +0000 (15:09 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 11 Jun 2022 15:47:27 +0000 (11:47 -0400)
commit1179a3bb3ca2745274e14182bbae1ad4639f4fb1
treeff5ddef871b5fa38995a3a8f65d04fbc52a3bded
parentc942350d1cea5e8f75c2571edfefcbcb9a2f8544
KVM: selftests: Return an 'unsigned int' from kvm_check_cap()

Return an 'unsigned int' instead of a signed 'int' from kvm_check_cap(),
to make it more obvious that kvm_check_cap() can never return a negative
value due to its assertion that the return is ">= 0".

Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/kvm_binary_stats_test.c
tools/testing/selftests/kvm/lib/kvm_util.c