Skip to content

Commit 12a2911

Browse files
yuliao0214shuahkh
authored andcommitted
selftests dma: fix compile error for dma_map_benchmark
When building selftests/dma: $ make -C tools/testing/selftests TARGETS=dma I hit the following compilation error: dma_map_benchmark.c:13:10: fatal error: linux/map_benchmark.h: No such file or directory #include <linux/map_benchmark.h> ^~~~~~~~~~~~~~~~~~~~~~~ dma/Makefile does not include the map_benchmark.h path, so add more including path, and fix include order in dma_map_benchmark.c Fixes: 8ddde07 ("dma-mapping: benchmark: extract a common header file for map_benchmark definition") Signed-off-by: Yu Liao <[email protected]> Tested-by: Shuah Khan <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
1 parent 795285e commit 12a2911

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

tools/testing/selftests/dma/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# SPDX-License-Identifier: GPL-2.0
22
CFLAGS += -I../../../../usr/include/
3+
CFLAGS += -I../../../../include/
34

45
TEST_GEN_PROGS := dma_map_benchmark
56

tools/testing/selftests/dma/dma_map_benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
#include <unistd.h>
1111
#include <sys/ioctl.h>
1212
#include <sys/mman.h>
13-
#include <linux/map_benchmark.h>
1413
#include <linux/types.h>
14+
#include <linux/map_benchmark.h>
1515

1616
#define NSEC_PER_MSEC 1000000L
1717

0 commit comments

Comments
 (0)