]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: vDSO: fix vdso_config for s390
authorHeiko Carstens <hca@linux.ibm.com>
Wed, 11 Sep 2024 08:50:15 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:34 +0000 (15:11 +0200)
commitb8219d9dd128a9b0898e71774611eaa092de6b58
tree7cf4b818c5c1c8254fbdbb4065bc2bee9e3f9feb
parent2d07646df487e59c9e226abc70414ccfbaeac899
selftests: vDSO: fix vdso_config for s390

[ Upstream commit a6e23fb8d3c0e3904da70beaf5d7e840a983c97f ]

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: 693f5ca08ca0 ("kselftest: Extend vDSO selftest")
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/vDSO/vdso_config.h