]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
kselftest/arm4: Provide local defines for AT_HWCAP3
authorMark Brown <broonie@kernel.org>
Tue, 15 Jul 2025 21:11:41 +0000 (22:11 +0100)
committerWill Deacon <will@kernel.org>
Thu, 17 Jul 2025 10:07:55 +0000 (11:07 +0100)
Some build environments for the selftests are not picking up the newly
added AT_HWCAP3 when using the libc headers, even with headers_install
(which we require already for the arm64 selftests).  As a quick fix add
local definitions of the constant to tools use it, while auxvec.h is
installed with some toolchains it needs some persuasion to get picked up.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20250715-arm64-selftest-bodge-hwcap3-v1-1-541b54bc43bb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c
tools/testing/selftests/arm64/mte/check_prctl.c

index 35f521e5f41c6662c895322e56bf32e2fe83b979..aa902408facd8d2b4f3f54b8b1c3dcb3a0d1d6dc 100644 (file)
 
 #define TESTS_PER_HWCAP 3
 
+#ifndef AT_HWCAP3
+#define AT_HWCAP3 29
+#endif
+
 /*
  * Function expected to generate exception when the feature is not
  * supported and return when it is supported. If the specific exception
index 4c89e9538ca00cb3eb5fb173d13f66c9082a80b7..c36c4c49ff951fa58d8b4b59a62b6adf57c0d3fb 100644 (file)
 
 #include "kselftest.h"
 
+#ifndef AT_HWCAP3
+#define AT_HWCAP3 29
+#endif
+
 static int set_tagged_addr_ctrl(int val)
 {
        int ret;