selftests: vDSO: fix vdso_config for powerpc
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 30 Aug 2024 12:28:36 +0000 (14:28 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Fri, 30 Aug 2024 13:48:45 +0000 (15:48 +0200)
commit7d297c419b08eafa69ce27243ee9bbecab4fcaa4
treef421e1d6e0d1a1698e2efded7f552723e9f9f877
parent59eb856c3ed9b3552befd240c0c339f22eed3fa1
selftests: vDSO: fix vdso_config for powerpc

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>
tools/testing/selftests/vDSO/vdso_config.h