diff options
author | Yu Liao <liaoyu15@huawei.com> | 2022-06-14 14:02:35 +0200 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-06-16 22:03:21 +0200 |
commit | 12a29115be72dfc72372af9ded4bc4ae7113a729 (patch) | |
tree | bd5fbd65783c0fd310e3affeb898ecf7c51b8db9 /tools/testing/selftests/dma/Makefile | |
parent | selftests: Fix clang cross compilation (diff) | |
download | linux-12a29115be72dfc72372af9ded4bc4ae7113a729.tar.xz linux-12a29115be72dfc72372af9ded4bc4ae7113a729.zip |
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: 8ddde07a3d28 ("dma-mapping: benchmark: extract a common header file for map_benchmark definition")
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Tested-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/dma/Makefile')
-rw-r--r-- | tools/testing/selftests/dma/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/dma/Makefile b/tools/testing/selftests/dma/Makefile index aa8e8b5b3864..cd8c5ece1cba 100644 --- a/tools/testing/selftests/dma/Makefile +++ b/tools/testing/selftests/dma/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 CFLAGS += -I../../../../usr/include/ +CFLAGS += -I../../../../include/ TEST_GEN_PROGS := dma_map_benchmark |