All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Frank A. Cancio Bello" <frank@generalsoftwareinc.com>
To: Julia Lawall <julia.lawall@lip6.fr>
Cc: gregkh@linuxfoundation.org, outreachy-kernel@googlegroups.com,
	saiprakash.ranjan@codeaurora.org, joel@joelfernandes.org,
	Matthias Brugger <matthias.bgg@gmail.com>
Subject: Re: [Outreachy kernel] [PATCH] staging: mt7621-dma: Remove unnecessary line continuations
Date: Mon, 28 Oct 2019 07:00:45 +0000	[thread overview]
Message-ID: <20191028070045.tjxnumxuv365vask@linux-kernel-dev> (raw)
In-Reply-To: <alpine.DEB.2.21.1910280726270.2314@hadrien>

On Mon, Oct 28, 2019 at 07:27:36AM +0100, Julia Lawall wrote:
> 
> 
> On Mon, 28 Oct 2019, Frank A. Cancio Bello wrote:
> 
> > checkpatch message:
> > "WARNING:LINE_CONTINUATIONS: Avoid unnecessary line continuations"
> >
> > Signed-off-by: Frank A. Cancio Bello <frank@generalsoftwareinc.com>
> > ---
> >  drivers/staging/mt7621-dma/mtk-hsdma.c | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c
> > index 03c8937f80b0..94c2c708dc92 100644
> > --- a/drivers/staging/mt7621-dma/mtk-hsdma.c
> > +++ b/drivers/staging/mt7621-dma/mtk-hsdma.c
> > @@ -208,8 +208,8 @@ static void mtk_hsdma_reset_chan(struct mtk_hsdam_engine *hsdma,
> >
> >  static void hsdma_dump_reg(struct mtk_hsdam_engine *hsdma)
> >  {
> > -	dev_dbg(hsdma->ddev.dev, "tbase %08x, tcnt %08x, " \
> > -			"tctx %08x, tdtx: %08x, rbase %08x, " \
> > +	dev_dbg(hsdma->ddev.dev, "tbase %08x, tcnt %08x, "
> > +			"tctx %08x, tdtx: %08x, rbase %08x, "
> >  			"rcnt %08x, rctx %08x, rdtx %08x\n",
> 
> String should not be cut over multiple lines, even if it results in
> exceeding 80 characters.  This makes it easier to grep for messages in the
> code.  You could fix both problems at once, since they affect the same
> code in each case.
> 
> julia
>

Thank you Julia for the suggestion. I already sent a new version of the patch.

frank a.

> >  			mtk_hsdma_read(hsdma, HSDMA_REG_TX_BASE),
> >  			mtk_hsdma_read(hsdma, HSDMA_REG_TX_CNT),
> > @@ -220,7 +220,7 @@ static void hsdma_dump_reg(struct mtk_hsdam_engine *hsdma)
> >  			mtk_hsdma_read(hsdma, HSDMA_REG_RX_CRX),
> >  			mtk_hsdma_read(hsdma, HSDMA_REG_RX_DRX));
> >
> > -	dev_dbg(hsdma->ddev.dev, "info %08x, glo %08x, delay %08x, " \
> > +	dev_dbg(hsdma->ddev.dev, "info %08x, glo %08x, delay %08x, "
> >  			"intr_stat %08x, intr_mask %08x\n",
> >  			mtk_hsdma_read(hsdma, HSDMA_REG_INFO),
> >  			mtk_hsdma_read(hsdma, HSDMA_REG_GLO_CFG),
> > @@ -243,9 +243,9 @@ static void hsdma_dump_desc(struct mtk_hsdam_engine *hsdma,
> >  		tx_desc = &chan->tx_ring[i];
> >  		rx_desc = &chan->rx_ring[i];
> >
> > -		dev_dbg(hsdma->ddev.dev, "%d tx addr0: %08x, flags %08x, " \
> > +		dev_dbg(hsdma->ddev.dev, "%d tx addr0: %08x, flags %08x, "
> >  				"tx addr1: %08x, rx addr0 %08x, flags %08x\n",
> > -				i, tx_desc->addr0, tx_desc->flags, \
> > +				i, tx_desc->addr0, tx_desc->flags,
> >  				tx_desc->addr1, rx_desc->addr0, rx_desc->flags);
> >  	}
> >  }
> > --
> > 2.17.1
> >
> > --
> > You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20191028051237.3row7xnbr6pgn4bp%40linux-kernel-dev.
> >


      reply	other threads:[~2019-10-28  7:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-28  5:12 [PATCH] staging: mt7621-dma: Remove unnecessary line continuations Frank A. Cancio Bello
2019-10-28  6:27 ` [Outreachy kernel] " Julia Lawall
2019-10-28  7:00   ` Frank A. Cancio Bello [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=20191028070045.tjxnumxuv365vask@linux-kernel-dev \
    --to=frank@generalsoftwareinc.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joel@joelfernandes.org \
    --cc=julia.lawall@lip6.fr \
    --cc=matthias.bgg@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=saiprakash.ranjan@codeaurora.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.