]> git.baikalelectronics.ru Git - kernel.git/commit
selftests dma: fix compile error for dma_map_benchmark
authorYu Liao <liaoyu15@huawei.com>
Tue, 14 Jun 2022 12:02:35 +0000 (20:02 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 16 Jun 2022 20:03:21 +0000 (14:03 -0600)
commitf84241b5ce63f1ce2074b78345f880fe06eb3046
treebd5fbd65783c0fd310e3affeb898ecf7c51b8db9
parent903bb6486f079d4b238905e89461a1c5cb84fadd
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: d3536ed835cb ("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>
tools/testing/selftests/dma/Makefile
tools/testing/selftests/dma/dma_map_benchmark.c