From b30052bc69facd6450de84a61d16c728a8fb642d Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 4 Sep 2019 18:41:00 +0200 Subject: [PATCH] UPSTREAM: selftests, arm64: add kernel headers path for tags_test (Upstream commit bd3841cd3bd852e7363218e71e48cb473de4fc06). tags_test.c relies on PR_SET_TAGGED_ADDR_CTRL/PR_TAGGED_ADDR_ENABLE being present in system headers. When this is not the case the build of this test fails with undeclared identifier errors. Fix by providing the path to the KSFT installed kernel headers in CFLAGS. Reported-by: Cristian Marussi Suggested-by: Cristian Marussi Signed-off-by: Andrey Konovalov Signed-off-by: Will Deacon Signed-off-by: Andrey Konovalov Bug: 135692346 Change-Id: I60d1538e2fc391bcf74823ddcdce7c425d6bf707 --- tools/testing/selftests/arm64/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/arm64/Makefile b/tools/testing/selftests/arm64/Makefile index a61b2e743e99..f9f79fb272f0 100644 --- a/tools/testing/selftests/arm64/Makefile +++ b/tools/testing/selftests/arm64/Makefile @@ -4,6 +4,7 @@ ARCH ?= $(shell uname -m 2>/dev/null || echo not) ifneq (,$(filter $(ARCH),aarch64 arm64)) +CFLAGS += -I../../../../usr/include/ TEST_GEN_PROGS := tags_test TEST_PROGS := run_tags_test.sh endif