mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-19 07:39:54 +02:00
selftests: vDSO: fix vdso_config for powerpc
[ Upstream commit7d297c419b
] 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:693f5ca08c
("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>
This commit is contained in:
parent
6c8aff2022
commit
d3b90ed9a0
|
@ -18,13 +18,13 @@
|
|||
#elif defined(__aarch64__)
|
||||
#define VDSO_VERSION 3
|
||||
#define VDSO_NAMES 0
|
||||
#elif defined(__powerpc64__)
|
||||
#define VDSO_VERSION 1
|
||||
#define VDSO_NAMES 0
|
||||
#elif defined(__powerpc__)
|
||||
#define VDSO_VERSION 1
|
||||
#define VDSO_NAMES 0
|
||||
#define VDSO_32BIT 1
|
||||
#elif defined(__powerpc64__)
|
||||
#define VDSO_VERSION 1
|
||||
#define VDSO_NAMES 0
|
||||
#elif defined (__s390__)
|
||||
#define VDSO_VERSION 2
|
||||
#define VDSO_NAMES 0
|
||||
|
|
Loading…
Reference in New Issue
Block a user