Skip to content

Commit 54c6051

Browse files
brooniewilldeacon
authored andcommitted
kselftest/arm4: Provide local defines for AT_HWCAP3
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 <[email protected]> Link: https://lore.kernel.org/r/20250715-arm64-selftest-bodge-hwcap3-v1-1-541b54bc43bb@kernel.org Signed-off-by: Will Deacon <[email protected]>
1 parent 9e8ebfe commit 54c6051

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tools/testing/selftests/arm64/abi/hwcap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
#define TESTS_PER_HWCAP 3
2323

24+
#ifndef AT_HWCAP3
25+
#define AT_HWCAP3 29
26+
#endif
27+
2428
/*
2529
* Function expected to generate exception when the feature is not
2630
* supported and return when it is supported. If the specific exception

tools/testing/selftests/arm64/mte/check_prctl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212

1313
#include "kselftest.h"
1414

15+
#ifndef AT_HWCAP3
16+
#define AT_HWCAP3 29
17+
#endif
18+
1519
static int set_tagged_addr_ctrl(int val)
1620
{
1721
int ret;

0 commit comments

Comments
 (0)