]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests: kvm: fix build with glibc >= 2.30
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 13 Nov 2019 12:51:15 +0000 (13:51 +0100)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:23:20 +0000 (14:23 -0300)
commitcd20a6efcbe61f5ad556398ef0022461b04500b0
treee71c1981b8054dc6bc169768b932c8b36603b695
parentf6afe4307989f79a87561a5f3faa9ffc72686ac6
selftests: kvm: fix build with glibc >= 2.30

BugLink: https://bugs.launchpad.net/bugs/1856334
[ Upstream commit e37f9f139f62deddff90c7298ae3a85026a71067 ]

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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
tools/testing/selftests/kvm/lib/assert.c