Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Christophe Leroy and committed by
Jason A. Donenfeld
7d297c41 59eb856c

+3 -3
+3 -3
tools/testing/selftests/vDSO/vdso_config.h
··· 18 18 #elif defined(__aarch64__) 19 19 #define VDSO_VERSION 3 20 20 #define VDSO_NAMES 0 21 + #elif defined(__powerpc64__) 22 + #define VDSO_VERSION 1 23 + #define VDSO_NAMES 0 21 24 #elif defined(__powerpc__) 22 25 #define VDSO_VERSION 1 23 26 #define VDSO_NAMES 0 24 27 #define VDSO_32BIT 1 25 - #elif defined(__powerpc64__) 26 - #define VDSO_VERSION 1 27 - #define VDSO_NAMES 0 28 28 #elif defined (__s390__) 29 29 #define VDSO_VERSION 2 30 30 #define VDSO_NAMES 0