DMA Engine development
 help / color / mirror / Atom feed
From: Frank Li <Frank.li@oss.nxp.com>
To: sashiko-reviews@lists.linux.dev
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
	dmaengine@vger.kernel.org, vkoul@kernel.org, Frank.Li@kernel.org
Subject: Re: [PATCH v3] dmaengine: loongson: Remove the dev_dbg() output
Date: Mon, 21 Sep 2026 11:04:56 -0500	[thread overview]
Message-ID: <arFVqH7p_plaxaqe@SMW015318> (raw)
In-Reply-To: <20260921151614.B460D1F0089A@smtp.kernel.org>

On Mon, Sep 21, 2026 at 03:16:14PM +0000, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
> - [Low] dmaengine: loongson: unnecessary curly braces around single statement
> --
>
> commit 800bb056df0405c03d12921052d730f7cccef7be
> Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
>
> dmaengine: loongson: Remove the dev_dbg() output
>
> This commit removes the dev_dbg() output from
> loongson2_cmc_dma_issue_pending() since the %pK format modifier is not
> appropriate for general printk output. The debug statement was deemed
> non-essential and is completely removed.
>
> > diff --git a/drivers/dma/loongson/loongson2-apb-cmc-dma.c b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > index 1c9a542edc859..27f8f7a5738d9 100644
> > --- a/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > +++ b/drivers/dma/loongson/loongson2-apb-cmc-dma.c
> > @@ -337,7 +337,6 @@ static void loongson2_cmc_dma_issue_pending(struct dma_chan *chan)
> >  	guard(spinlock_irqsave)(&lchan->vchan.lock);
> >
> >  	if (vchan_issue_pending(&lchan->vchan) && !lchan->desc) {
> > -		dev_dbg(chan2dev(lchan), "vchan %pK: issued\n", &lchan->vchan);
> >  		loongson2_cmc_dma_start_transfer(lchan);
> >  	}
>
> [Severity: Low]
> This isn't a bug, but with the removal of the dev_dbg() statement, this if
> block now contains only a single statement. Should the curly braces be
> removed to adhere to the kernel coding style guidelines?

Please fix this also.

Frank

>
> >  }
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260921151312.I8Q8NLnx@linutronix.de?part=1

  reply	other threads:[~2026-09-21 16:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-21 15:13 [PATCH v3] dmaengine: loongson: Remove the dev_dbg() output Sebastian Andrzej Siewior
2026-09-21 15:16 ` sashiko-bot
2026-09-21 16:04   ` Frank Li [this message]
2026-09-21 16:03 ` Frank Li

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=arFVqH7p_plaxaqe@SMW015318 \
    --to=frank.li@oss.nxp.com \
    --cc=Frank.Li@kernel.org \
    --cc=bigeasy@linutronix.de \
    --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