Skip to content

Commit d6e1b30

Browse files
hcahcamehmetb0
authored andcommitted
selftests: vDSO: fix vdso_config for s390
BugLink: https://bugs.launchpad.net/bugs/2086242 [ Upstream commit a6e23fb ] Running vdso_test_correctness on s390x (aka s390 64 bit) emits a warning: Warning: failed to find clock_gettime64 in vDSO This is caused by the "#elif defined (__s390__)" check in vdso_config.h which the defines VDSO_32BIT. If __s390x__ is defined also __s390__ is defined. Therefore the correct check must make sure that only __s390__ is defined. Therefore add the missing !defined(__s390x__). Also use common __s390x__ define instead of __s390X__. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Fixes: 693f5ca ("kselftest: Extend vDSO selftest") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Koichiro Den <koichiro.den@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
1 parent 4ad4266 commit d6e1b30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/vDSO/vdso_config.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
#define VDSO_VERSION 1
2626
#define VDSO_NAMES 0
2727
#define VDSO_32BIT 1
28-
#elif defined (__s390__)
28+
#elif defined (__s390__) && !defined(__s390x__)
2929
#define VDSO_VERSION 2
3030
#define VDSO_NAMES 0
3131
#define VDSO_32BIT 1
32-
#elif defined (__s390X__)
32+
#elif defined (__s390x__)
3333
#define VDSO_VERSION 2
3434
#define VDSO_NAMES 0
3535
#elif defined(__mips__)

0 commit comments

Comments
 (0)