linux-kernelorg-stable/tools/testing/selftests/arm64/gcs
Thomas Weißschuh 5b7bdc4402 kselftest/arm64/gcs/basic-gcs: Respect parent directory CFLAGS
basic-gcs has it's own make rule to handle the special compiler
invocation to build against nolibc. This rule does not respect the
$(CFLAGS) passed by the Makefile from the parent directory.
However these $(CFLAGS) set up the include path to include the UAPI
headers from the current kernel.
Due to this the asm/hwcap.h header is used from the toolchain instead of
the UAPI and the definition of HWCAP_GCS is not found.

Restructure the rule for basic-gcs to respect the $(CFLAGS).
Also drop those options which are already provided by $(CFLAGS).

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Closes: https://lore.kernel.org/lkml/CA+G9fYv77X+kKz2YT6xw7=9UrrotTbQ6fgNac7oohOg8BgGvtw@mail.gmail.com/
Fixes: a985fe6383 ("kselftest/arm64/gcs: Use nolibc's getauxval()")
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
2025-09-17 16:32:02 +01:00
..
.gitignore kselftest/arm64: Validate that GCS push and write permissions work 2024-10-16 14:59:50 +01:00
Makefile kselftest/arm64/gcs/basic-gcs: Respect parent directory CFLAGS 2025-09-17 16:32:02 +01:00
asm-offsets.h kselftest/arm64: Add a GCS stress test 2024-10-04 12:04:45 +01:00
basic-gcs.c kselftest/arm64/gcs: Use nolibc's getauxval() 2025-09-08 15:54:39 +01:00
gcs-locking.c kselftest/arm64: Remove extra blank line 2025-09-08 16:01:21 +01:00
gcs-stress-thread.S kselftest/arm64: Add a GCS stress test 2024-10-04 12:04:45 +01:00
gcs-stress.c selftests/arm64: Fix grammatical error in string literals 2025-09-08 16:17:13 +01:00
gcs-util.h
gcspushm.S kselftest/arm64: Validate that GCS push and write permissions work 2024-10-16 14:59:50 +01:00
gcsstr.S kselftest/arm64: Validate that GCS push and write permissions work 2024-10-16 14:59:50 +01:00
libc-gcs.c