linux-uconsole/tools/testing/selftests/kvm/lib
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
..
assert.c selftests: kvm: fix build with glibc >= 2.30 2019-12-13 08:51:05 +01:00
elf.c
io.c
kvm_util.c kvm: selftests: Fix region overlap check in kvm_util 2019-03-05 17:58:52 +01:00
kvm_util_internal.h kvm: selftests: add basic test for state save and restore 2018-08-06 17:32:04 +02:00
sparsebit.c kvm: selftests: fix spelling mistake: "divisable" and "divisible" 2018-04-10 17:20:03 +02:00
vmx.c KVM: selftests: add tests for shadow VMCS save/restore 2018-08-06 17:58:44 +02:00
x86.c selftests: kvm: fix state save/load on processors without XSAVE 2019-09-10 10:33:51 +01:00