* [PATCH] tools/dma: fix building with O=
@ 2026-10-11 22:33 ` Sasha Levin
2026-10-13 2:09 ` Qinxin Xia
2026-10-13 11:42 ` Marek Szyprowski
0 siblings, 2 replies; 3+ messages in thread
From: Sasha Levin @ 2026-10-11 22:33 UTC (permalink / raw)
To: Barry Song, Qinxin Xia, Marek Szyprowski
Cc: Sasha Levin, stable, iommu, linux-kernel
With O= set, "all" depends on $(OUTPUT)dma_map_benchmark, but the only
rule builds dma_map_benchmark in the source directory, and built-in
rules are disabled:
make: *** No rule to make target '<O>/dma_map_benchmark', needed by 'all'. Stop.
Build $(OUTPUT)dma_map_benchmark.
Fixes: f74ee32963f1b ("tools/dma: move dma_map_benchmark from selftests to tools/dma")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
tools/dma/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/dma/Makefile b/tools/dma/Makefile
index e4abf37bf020c..0c239a6b9eae5 100644
--- a/tools/dma/Makefile
+++ b/tools/dma/Makefile
@@ -38,8 +38,8 @@ prepare: $(OUTPUT)include/linux/map_benchmark.h
FORCE:
DMA_MAP_BENCHMARK = dma_map_benchmark
-$(DMA_MAP_BENCHMARK): prepare FORCE
- $(CC) $(CFLAGS) $(DMA_MAP_BENCHMARK).c -o $(DMA_MAP_BENCHMARK)
+$(OUTPUT)$(DMA_MAP_BENCHMARK): prepare FORCE
+ $(CC) $(CFLAGS) $(DMA_MAP_BENCHMARK).c -o $@
clean:
rm -f $(ALL_PROGRAMS)
--
2.53.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/dma: fix building with O=
2026-10-11 22:33 ` [PATCH] tools/dma: fix building with O= Sasha Levin
@ 2026-10-13 2:09 ` Qinxin Xia
2026-10-13 11:42 ` Marek Szyprowski
1 sibling, 0 replies; 3+ messages in thread
From: Qinxin Xia @ 2026-10-13 2:09 UTC (permalink / raw)
To: Sasha Levin, Barry Song, Marek Szyprowski; +Cc: stable, iommu, linux-kernel
On 2026/10/12 06:33:31, Sasha Levin <sashal@kernel.org> wrote:
> With O= set, "all" depends on $(OUTPUT)dma_map_benchmark, but the only
> rule builds dma_map_benchmark in the source directory, and built-in
> rules are disabled:
>
> make: *** No rule to make target '<O>/dma_map_benchmark', needed by 'all'. Stop.
>
> Build $(OUTPUT)dma_map_benchmark.
>
> Fixes: f74ee32963f1b ("tools/dma: move dma_map_benchmark from selftests to tools/dma")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
> tools/dma/Makefile | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/dma/Makefile b/tools/dma/Makefile
> index e4abf37bf020c..0c239a6b9eae5 100644
> --- a/tools/dma/Makefile
> +++ b/tools/dma/Makefile
> @@ -38,8 +38,8 @@ prepare: $(OUTPUT)include/linux/map_benchmark.h
> FORCE:
>
> DMA_MAP_BENCHMARK = dma_map_benchmark
> -$(DMA_MAP_BENCHMARK): prepare FORCE
> - $(CC) $(CFLAGS) $(DMA_MAP_BENCHMARK).c -o $(DMA_MAP_BENCHMARK)
> +$(OUTPUT)$(DMA_MAP_BENCHMARK): prepare FORCE
> + $(CC) $(CFLAGS) $(DMA_MAP_BENCHMARK).c -o $@
>
> clean:
> rm -f $(ALL_PROGRAMS)
Acked-by: Qinxin Xia <xiaqinxin@huawei.com>
--
Thanks,
Qinxin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] tools/dma: fix building with O=
2026-10-11 22:33 ` [PATCH] tools/dma: fix building with O= Sasha Levin
2026-10-13 2:09 ` Qinxin Xia
@ 2026-10-13 11:42 ` Marek Szyprowski
1 sibling, 0 replies; 3+ messages in thread
From: Marek Szyprowski @ 2026-10-13 11:42 UTC (permalink / raw)
To: Sasha Levin, Barry Song, Qinxin Xia; +Cc: stable, iommu, linux-kernel
On 12.10.2026 00:33, Sasha Levin wrote:
> With O= set, "all" depends on $(OUTPUT)dma_map_benchmark, but the only
> rule builds dma_map_benchmark in the source directory, and built-in
> rules are disabled:
>
> make: *** No rule to make target '<O>/dma_map_benchmark', needed by 'all'. Stop.
>
> Build $(OUTPUT)dma_map_benchmark.
>
> Fixes: f74ee32963f1b ("tools/dma: move dma_map_benchmark from selftests to tools/dma")
> Cc: stable@vger.kernel.org
> Assisted-by: LLM
> Signed-off-by: Sasha Levin <sashal@kernel.org>
Applied to dma-mapping-for-next. Thanks!
Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-13 11:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20261011223409eucas1p2100147e14b9393639235b1858cd48e20@eucas1p2.samsung.com>
2026-10-11 22:33 ` [PATCH] tools/dma: fix building with O= Sasha Levin
2026-10-13 2:09 ` Qinxin Xia
2026-10-13 11:42 ` Marek Szyprowski
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®