]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: vDSO: fix vdso_config for powerpc
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 30 Aug 2024 12:28:36 +0000 (14:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:00:43 +0000 (12:00 +0200)
commit9189b421a39540fe0f0b865e89918d579bbea62b
tree789efe6167c332a0b494ae5746438e682c7212ef
parent9d7926a7120b17c3f9468ca95c7b01003d0e3fd6
selftests: vDSO: fix vdso_config for powerpc

[ Upstream commit 7d297c419b08eafa69ce27243ee9bbecab4fcaa4 ]

Running vdso_test_correctness on powerpc64 gives the following warning:

  ~ # ./vdso_test_correctness
  Warning: failed to find clock_gettime64 in vDSO

This is because vdso_test_correctness was built with VDSO_32BIT defined.

__powerpc__ macro is defined on both powerpc32 and powerpc64 so
__powerpc64__ needs to be checked first in vdso_config.h

Fixes: 693f5ca08ca0 ("kselftest: Extend vDSO selftest")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/vDSO/vdso_config.h