Skip to content

Commit 64ba3d5

Browse files
johnstultz-workshuahkh
authored andcommitted
kselftests: dmabuf-heaps: Fix Makefile's inclusion of the kernel's usr/include dir
Copied in from somewhere else, the makefile was including the kerne's usr/include dir, which caused the asm/ioctl.h file to be used. Unfortunately, that file has different values for _IOC_SIZEBITS and _IOC_WRITE than include/uapi/asm-generic/ioctl.h which then causes the _IOCW macros to give the wrong ioctl numbers, specifically for DMA_BUF_IOCTL_SYNC. This patch simply removes the extra include from the Makefile Cc: Shuah Khan <[email protected]> Cc: Brian Starkey <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Laura Abbott <[email protected]> Cc: Hridya Valsaraju <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Sandeep Patil <[email protected]> Cc: Daniel Mentz <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Fixes: a877992 ("kselftests: Add dma-heap test") Signed-off-by: John Stultz <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 92bf226 commit 64ba3d5

File tree

1 file changed

+1
-1
lines changed
  • tools/testing/selftests/dmabuf-heaps

1 file changed

+1
-1
lines changed

tools/testing/selftests/dmabuf-heaps/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
CFLAGS += -static -O3 -Wl,-no-as-needed -Wall -I../../../../usr/include
2+
CFLAGS += -static -O3 -Wl,-no-as-needed -Wall
33

44
TEST_GEN_PROGS = dmabuf-heap
55

0 commit comments

Comments
 (0)