From: Shuah Khan <skhan@linuxfoundation.org>
To: Yu Liao <liaoyu15@huawei.com>,
chenxiang66@hisilicon.com, song.bao.hua@hisilicon.com,
tiantao6@hisilicon.com, shuah@kernel.org
Cc: liwei391@huawei.com, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Shuah Khan <skhan@linuxfoundation.org>
Subject: Re: [PATCH] selftests dma: fix compile error for dma_map_benchmark
Date: Thu, 16 Jun 2022 14:05:48 -0600 [thread overview]
Message-ID: <0e109d9a-e2e3-b3fd-a2cc-6f05abe90e0c@linuxfoundation.org> (raw)
In-Reply-To: <20220614120235.1557825-1-liaoyu15@huawei.com>
On 6/14/22 6:02 AM, Yu Liao wrote:
> 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>
> ---
> tools/testing/selftests/dma/Makefile | 1 +
> tools/testing/selftests/dma/dma_map_benchmark.c | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> 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
>
> diff --git a/tools/testing/selftests/dma/dma_map_benchmark.c b/tools/testing/selftests/dma/dma_map_benchmark.c
> index c3b3c09e995e..5c997f17fcbd 100644
> --- a/tools/testing/selftests/dma/dma_map_benchmark.c
> +++ b/tools/testing/selftests/dma/dma_map_benchmark.c
> @@ -10,8 +10,8 @@
> #include <unistd.h>
> #include <sys/ioctl.h>
> #include <sys/mman.h>
> -#include <linux/map_benchmark.h>
> #include <linux/types.h>
> +#include <linux/map_benchmark.h>
>
> #define NSEC_PER_MSEC 1000000L
>
>
Thank you for the fix. Applied to linux-kselftest fixes branch for
Linux 5.19-rc3 or rc4
thanks,
-- Shuah
prev parent reply other threads:[~2022-06-16 20:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 12:02 Yu Liao
2022-06-16 20:05 ` Shuah Khan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e109d9a-e2e3-b3fd-a2cc-6f05abe90e0c@linuxfoundation.org \
--to=skhan@linuxfoundation.org \
--cc=chenxiang66@hisilicon.com \
--cc=liaoyu15@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=liwei391@huawei.com \
--cc=shuah@kernel.org \
--cc=song.bao.hua@hisilicon.com \
--cc=tiantao6@hisilicon.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®