linux-uconsole/tools/testing/selftests/kvm
Vitaly Kuznetsov a806e2a35d selftests: kvm: fix build with glibc >= 2.30
[ Upstream commit e37f9f139f ]

Glibc-2.30 gained gettid() wrapper, selftests fail to compile:

lib/assert.c:58:14: error: static declaration of ‘gettid’ follows non-static declaration
   58 | static pid_t gettid(void)
      |              ^~~~~~
In file included from /usr/include/unistd.h:1170,
                 from include/test_util.h:18,
                 from lib/assert.c:10:
/usr/include/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ was here
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-13 08:51:05 +01:00
..
include kvm: selftests: Add platform_info_test 2018-09-20 00:51:47 +02:00
lib selftests: kvm: fix build with glibc >= 2.30 2019-12-13 08:51:05 +01:00
.gitignore kvm: selftests: Add platform_info_test 2018-09-20 00:51:47 +02:00
config selftests: kvm: Adding config fragments 2019-08-29 08:28:48 +02:00
cr4_cpuid_sync_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
dirty_log_test.c selftests: kvm: Fix -Wformat warnings 2019-12-01 09:16:59 +01:00
Makefile selftests: Fix test errors related to lib.mk khdr target 2019-01-22 21:40:38 +01:00
platform_info_test.c selftests/kvm: make platform_info_test pass on AMD 2019-09-10 10:33:51 +01:00
set_sregs_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
state_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
sync_regs_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00
vmx_tsc_adjust_test.c kvm: selftest: pass in extra memory when create vm 2018-08-22 16:48:38 +02:00