Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit 1c59ad0

Browse files
chleroygregkh
authored andcommitted
selftests: vDSO: fix vdso_config for powerpc
[ Upstream commit 7d297c4 ] 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: 693f5ca ("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>
1 parent b8a0f2e commit 1c59ad0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/testing/selftests/vDSO/vdso_config.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@
1818
#elif defined(__aarch64__)
1919
#define VDSO_VERSION 3
2020
#define VDSO_NAMES 0
21-
#elif defined(__powerpc__)
21+
#elif defined(__powerpc64__)
2222
#define VDSO_VERSION 1
2323
#define VDSO_NAMES 0
24-
#define VDSO_32BIT 1
25-
#elif defined(__powerpc64__)
24+
#elif defined(__powerpc__)
2625
#define VDSO_VERSION 1
2726
#define VDSO_NAMES 0
27+
#define VDSO_32BIT 1
2828
#elif defined (__s390__)
2929
#define VDSO_VERSION 2
3030
#define VDSO_NAMES 0

0 commit comments

Comments
 (0)