* linux-next: build failure after merge of the dmaengine-fixes tree
@ 2025-05-14 23:33 Stephen Rothwell
2025-05-15 10:48 ` Vinod Koul
0 siblings, 1 reply; 2+ messages in thread
From: Stephen Rothwell @ 2025-05-14 23:33 UTC (permalink / raw)
To: Vinod Koul
Cc: Qiu-ji Chen, Linux Kernel Mailing List, Linux Next Mailing List
[-- Attachment #1: Type: text/plain, Size: 593 bytes --]
Hi all,
After merging the dmaengine-fixes tree, today's linux-next build (x86_64
allmodconfig) failed like this:
drivers/dma/mediatek/mtk-cqdma.c: In function 'mtk_cqdma_find_active_desc':
drivers/dma/mediatek/mtk-cqdma.c:423:23: error: unused variable 'flags' [-Werror=unused-variable]
423 | unsigned long flags;
| ^~~~~
Caused by commit
157ae5ffd76a ("dmaengine: mediatek: Fix a possible deadlock error in mtk_cqdma_tx_status()")
I have used the dmaengine-fixes tree from next-20250514 for today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: linux-next: build failure after merge of the dmaengine-fixes tree
2025-05-14 23:33 linux-next: build failure after merge of the dmaengine-fixes tree Stephen Rothwell
@ 2025-05-15 10:48 ` Vinod Koul
0 siblings, 0 replies; 2+ messages in thread
From: Vinod Koul @ 2025-05-15 10:48 UTC (permalink / raw)
To: Stephen Rothwell, dma
Cc: Qiu-ji Chen, Linux Kernel Mailing List, Linux Next Mailing List
On 15-05-25, 09:33, Stephen Rothwell wrote:
> Hi all,
>
> After merging the dmaengine-fixes tree, today's linux-next build (x86_64
> allmodconfig) failed like this:
>
> drivers/dma/mediatek/mtk-cqdma.c: In function 'mtk_cqdma_find_active_desc':
> drivers/dma/mediatek/mtk-cqdma.c:423:23: error: unused variable 'flags' [-Werror=unused-variable]
> 423 | unsigned long flags;
> | ^~~~~
>
> Caused by commit
>
> 157ae5ffd76a ("dmaengine: mediatek: Fix a possible deadlock error in mtk_cqdma_tx_status()")
>
> I have used the dmaengine-fixes tree from next-20250514 for today.
Thanks, I have fixed it up and applied below:
-- >8 --
From 811d6a923b40fc130f91abf49151f57cf9ac2a6f Mon Sep 17 00:00:00 2001
From: Vinod Koul <vkoul@kernel.org>
Date: Thu, 15 May 2025 11:42:13 +0100
Subject: [PATCH] dmaengine: mediatek: drop unused variable
Commit 157ae5ffd76a dmaengine: mediatek: Fix a possible deadlock error
in mtk_cqdma_tx_status() fixed locks but kept unused varibale leading to
warning and build failure (due to warning treated as errors)
drivers/dma/mediatek/mtk-cqdma.c: In function 'mtk_cqdma_find_active_desc':
drivers/dma/mediatek/mtk-cqdma.c:423:23: error: unused variable 'flags' [-Werror=unused-variable]
423 | unsigned long flags;
| ^~~~~
Fix by dropping this unused flag
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 157ae5ffd76a ("dmaengine: mediatek: Fix a possible deadlock error in mtk_cqdma_tx_status()")
Signed-off-by: Vinod Koul <vkoul@kernel.org>
---
drivers/dma/mediatek/mtk-cqdma.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/dma/mediatek/mtk-cqdma.c b/drivers/dma/mediatek/mtk-cqdma.c
index e35271ac1eed..47c8adfdc155 100644
--- a/drivers/dma/mediatek/mtk-cqdma.c
+++ b/drivers/dma/mediatek/mtk-cqdma.c
@@ -420,7 +420,6 @@ static struct virt_dma_desc *mtk_cqdma_find_active_desc(struct dma_chan *c,
{
struct mtk_cqdma_vchan *cvc = to_cqdma_vchan(c);
struct virt_dma_desc *vd;
- unsigned long flags;
list_for_each_entry(vd, &cvc->pc->queue, node)
if (vd->tx.cookie == cookie) {
--
2.34.1
--
~Vinod
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-05-15 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 23:33 linux-next: build failure after merge of the dmaengine-fixes tree Stephen Rothwell
2025-05-15 10:48 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).