kselftest: ksft_test_num return type should be unsigned
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Jun 2020 00:07:37 +0000 (20:07 -0400)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 Jul 2020 21:07:47 +0000 (15:07 -0600)
commit3c01655ac82eb6d1cc2cfe9507031f1b5e0a6df1
tree597e5457583a02804d3d360280805045b29a7770
parent0b78c9e8c19b57bf2081cd432841c7fe3f800633
kselftest: ksft_test_num return type should be unsigned

Fixes a compiler warning:

In file included from sync_test.c:37:
../kselftest.h: In function ‘ksft_print_cnts’:
../kselftest.h:78:16: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  if (ksft_plan != ksft_test_num())
                ^~

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/kselftest.h