]> Git Repo - J-linux.git/commitdiff
selftests, arm64: add kernel headers path for tags_test
authorAndrey Konovalov <[email protected]>
Wed, 4 Sep 2019 16:41:00 +0000 (18:41 +0200)
committerWill Deacon <[email protected]>
Tue, 17 Sep 2019 11:11:50 +0000 (12:11 +0100)
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 <[email protected]>
Suggested-by: Cristian Marussi <[email protected]>
Signed-off-by: Andrey Konovalov <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
tools/testing/selftests/arm64/Makefile

index a61b2e743e998f65c2d6b74918295bb58c917ebb..f9f79fb272f016e3259b20f94492d5adc21672b8 100644 (file)
@@ -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
This page took 0.054706 seconds and 4 git commands to generate.