From: Mathieu Desnoyers Date: Fri, 27 Jan 2023 13:57:46 +0000 (-0500) Subject: selftests: seccomp: Fix incorrect kernel headers search path X-Git-Tag: v6.1.21~667 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82f3b18daef71a518fbaee3c8cab63c13fac0860;p=platform%2Fkernel%2Flinux-starfive.git selftests: seccomp: Fix incorrect kernel headers search path commit 07d42dd854446ba3177ad7a217870a5b4edee165 upstream. Use $(KHDR_INCLUDES) as lookup path for kernel headers. This prevents building against kernel headers from the build environment in scenarios where kernel headers are installed into a specific output directory (O=...). Signed-off-by: Mathieu Desnoyers Cc: Shuah Khan Cc: linux-kselftest@vger.kernel.org Cc: Ingo Molnar Cc: # 5.18+ Signed-off-by: Shuah Khan Signed-off-by: Greg Kroah-Hartman --- diff --git a/tools/testing/selftests/seccomp/Makefile b/tools/testing/selftests/seccomp/Makefile index f017c38..584fba4 100644 --- a/tools/testing/selftests/seccomp/Makefile +++ b/tools/testing/selftests/seccomp/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 -CFLAGS += -Wl,-no-as-needed -Wall -isystem ../../../../usr/include/ +CFLAGS += -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) LDFLAGS += -lpthread LDLIBS += -lcap