DMA Engine development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Vinod Koul" <vkoul@kernel.org>
Cc: dmaengine@vger.kernel.org, Frank.Li@kernel.org, vkoul@kernel.org
Subject: Re: [PATCH] dmaengine: zynqmp_dma: drop redundant label
Date: Thu, 03 Sep 2026 17:11:51 +0000	[thread overview]
Message-ID: <20260903171152.52D051F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260903170357.1711462-1-vkoul@kernel.org>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] Removing the `err_disable_pm` label causes a compilation failure because a `goto err_disable_pm;` statement remains in `zynqmp_dma_probe()`.
--

commit b231b06f7a09316d1f0854b835d97d063a04395f
Author: Vinod Koul <vkoul@kernel.org>

dmaengine: zynqmp_dma: drop redundant label

This commit removes the err_disable_pm label from zynqmp_dma_probe() to fix
an unused label warning reported after an earlier runtime PM update.

> diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c
> index 2b03584102acf..71a310d50ee33 100644
> --- a/drivers/dma/xilinx/zynqmp_dma.c
> +++ b/drivers/dma/xilinx/zynqmp_dma.c
> @@ -1149,7 +1149,6 @@ static int zynqmp_dma_probe(struct platform_device *pdev)
>  
>  free_chan_resources:
>  	zynqmp_dma_chan_remove(zdev->chan);
> -err_disable_pm:

[Severity: Low]
Does this change cause a build failure?

Looking at zynqmp_dma_probe(), it appears there is still a jump to this
label earlier in the function:

	ret = zynqmp_dma_chan_probe(zdev, pdev);
	if (ret) {
		dev_err_probe(&pdev->dev, ret, "Probing channel failed\n");
		goto err_disable_pm;
	}

If the label is removed, won't the compiler fail with an undeclared label
error during compilation?

>  	if (!pm_runtime_enabled(zdev->dev))
>  		zynqmp_dma_runtime_suspend(zdev->dev);
>  	pm_runtime_disable(zdev->dev);

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260903170357.1711462-1-vkoul@kernel.org?part=1

  reply	other threads:[~2026-09-03 17:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-03 17:03 [PATCH] dmaengine: zynqmp_dma: drop redundant label Vinod Koul
2026-09-03 17:11 ` sashiko-bot [this message]
2026-09-03 19:01 ` Frank Li
2026-09-05 15:31 ` Pandey, Radhey Shyam

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=20260903171152.52D051F000E9@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=Frank.Li@kernel.org \
    --cc=dmaengine@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=vkoul@kernel.org \
    /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