Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: dmabuf-heaps: Fix incorrect kernel headers search path

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 <mathieu.desnoyers@efficios.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org
Cc: Ingo Molnar <mingo@redhat.com>
Cc: <stable@vger.kernel.org> # 5.18+
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Mathieu Desnoyers and committed by
Shuah Khan
f80f09b5 145df2fd

+2 -3
+1 -1
tools/testing/selftests/dmabuf-heaps/Makefile
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 - CFLAGS += -static -O3 -Wl,-no-as-needed -Wall 2 + CFLAGS += -static -O3 -Wl,-no-as-needed -Wall $(KHDR_INCLUDES) 3 3 4 4 TEST_GEN_PROGS = dmabuf-heap 5 5
+1 -2
tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
··· 13 13 #include <sys/types.h> 14 14 15 15 #include <linux/dma-buf.h> 16 + #include <linux/dma-heap.h> 16 17 #include <drm/drm.h> 17 - 18 - #include "../../../../include/uapi/linux/dma-heap.h" 19 18 20 19 #define DEVPATH "/dev/dma_heap" 21 20