From: Mathieu Desnoyers Date: Fri, 27 Jan 2023 13:57:54 +0000 (-0500) Subject: selftests: ptrace: Use installed kernel headers search path X-Git-Tag: v6.3-rc1~131^2~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c983a14238d6d4e95c5783b9d93dd4d4aeccdd9;p=thirdparty%2Flinux.git selftests: ptrace: Use installed kernel headers search path Use $(KHDR_INCLUDES) as lookup path for installed kernel headers rather than using kernel headers in include/uapi from the source kernel tree kernel headers. Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/ptrace/Makefile b/tools/testing/selftests/ptrace/Makefile index 2f1f532c39dbc..96ffa94afb913 100644 --- a/tools/testing/selftests/ptrace/Makefile +++ b/tools/testing/selftests/ptrace/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only -CFLAGS += -std=c99 -pthread -iquote../../../../include/uapi -Wall +CFLAGS += -std=c99 -pthread -Wall $(KHDR_INCLUDES) TEST_GEN_PROGS := get_syscall_info peeksiginfo vmaccess