public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Krish Jain <krishjain02939@gmail.com>
Cc: linux-staging@lists.linux.dev
Subject: Re: [PATCH] Use BIT macro instead of (1 << HSDMA_GLO_BT_SHIFT)
Date: Thu, 2 Sep 2021 07:57:28 +0200	[thread overview]
Message-ID: <YTBnyK4li0fq/Uci@kroah.com> (raw)
In-Reply-To: <CAPGkw+yQp1waspqz8_S8g5BK4j5B4=9eDYYRayp-Nb46jwDH6A@mail.gmail.com>

On Thu, Sep 02, 2021 at 07:46:59AM +0200, Krish Jain wrote:
> On Thu, Sep 2, 2021 at 7:46 AM Krish Jain <krishjain02939@gmail.com> wrote:
> >
> > Hi. How do I fix this issue, Greg? Thanks.
> >
> >
> > Best Regards
> >
> > On Thu, Sep 2, 2021 at 7:30 AM Greg KH <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Thu, Sep 02, 2021 at 01:52:15PM +0200, Krish Jain wrote:
> > > > This patch replaces (1 << HSDMA_GLO_BT_SHIFT) with the BIT(x) macro, as suggested by checkpatch.pl, for the file drivers/staging/mt7621-dma/hsdma-mt7621.c .
> > > >
> > > > Signed-off-by: Krish Jain <krishjain02939@gmail.com>
> > > >
> > > > ---
> > > >  drivers/staging/mt7621-dma/hsdma-mt7621.c | 5 ++---
> > > >  1 file changed, 2 insertions(+), 3 deletions(-)
> > > >
> > > > diff --git a/drivers/staging/mt7621-dma/hsdma-mt7621.c b/drivers/staging/mt7621-dma/hsdma-mt7621.c
> > > > index 89b72a802800..a99cec876110 100644
> > > > --- a/drivers/staging/mt7621-dma/hsdma-mt7621.c
> > > > +++ b/drivers/staging/mt7621-dma/hsdma-mt7621.c
> > > > @@ -72,7 +72,7 @@
> > > >  #define HSDMA_GLO_TX_DMA             BIT(0)
> > > >
> > > >  #define HSDMA_BT_SIZE_16BYTES                (0 << HSDMA_GLO_BT_SHIFT)
> > > > -#define HSDMA_BT_SIZE_32BYTES                (1 << HSDMA_GLO_BT_SHIFT)
> > > > +#define HSDMA_BT_SIZE_32BYTES                BIT(HSDMA_GLO_BT_SHIFT)
> > > >  #define HSDMA_BT_SIZE_64BYTES                (2 << HSDMA_GLO_BT_SHIFT)
> > > >  #define HSDMA_BT_SIZE_128BYTES               (3 << HSDMA_GLO_BT_SHIFT)
> > > >
> > > > @@ -164,8 +164,7 @@ struct mtk_hsdam_engine {
> > > >
> > > >  static inline struct mtk_hsdam_engine *mtk_hsdma_chan_get_dev(struct mtk_hsdma_chan *chan)
> > > >  {
> > > > -     return container_of(chan->vchan.chan.device, struct mtk_hsdam_engine,
> > > > -                     ddev);
> > > > +     return container_of(chan->vchan.chan.device, struct mtk_hsdam_engine, ddev);
> > > >  }
> > > >
> > > >  static inline struct mtk_hsdma_chan *to_mtk_hsdma_chan(struct dma_chan *c)
> > > > --
> > > > 2.25.1
> > > >
> > > >
> > >
> > > Hi,
> > >
> > > This is the friendly patch-bot of Greg Kroah-Hartman.  You have sent him
> > > a patch that has triggered this response.  He used to manually respond
> > > to these common problems, but in order to save his sanity (he kept
> > > writing the same thing over and over, yet to different people), I was
> > > created.  Hopefully you will not take offence and will fix the problem
> > > in your patch and resubmit it so that it can be accepted into the Linux
> > > kernel tree.
> > >
> > > You are receiving this message because of the following common error(s)
> > > as indicated below:
> > >
> > > - Your patch did many different things all at once, making it difficult
> > >   to review.  All Linux kernel patches need to only do one thing at a
> > >   time.  If you need to do multiple things (such as clean up all coding
> > >   style issues in a file/driver), do it in a sequence of patches, each
> > >   one doing only one thing.  This will make it easier to review the
> > >   patches to ensure that they are correct, and to help alleviate any
> > >   merge issues that larger patches can cause.
> > >
> > > - You did not write a descriptive Subject: for the patch, allowing Greg,
> > >   and everyone else, to know what this patch is all about.  Please read
> > >   the section entitled "The canonical patch format" in the kernel file,
> > >   Documentation/SubmittingPatches for what a proper Subject: line should
> > >   look like.
> > >
> > > If you wish to discuss this problem further, or you have questions about
> > > how to resolve this issue, please feel free to respond to this email and
> > > Greg will reply once he has dug out from the pending patches received
> > > from other developers.
> > >
> > > thanks,
> > >
> > > greg k-h's patch email bot
> 
> 
> Oops, muscle memory, sorry for top posting. "How do I fix this issue,
> Greg? Thanks."

Did you read the above text from the bot?  What specific suggestions
there did you try and not agree with?

thanks,

greg k-h

  reply	other threads:[~2021-09-02  5:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02 11:52 [PATCH] Use BIT macro instead of (1 << HSDMA_GLO_BT_SHIFT) Krish Jain
2021-09-02  5:30 ` Greg KH
2021-09-02  5:46   ` Krish Jain
2021-09-02  5:46     ` Krish Jain
2021-09-02  5:57       ` Greg KH [this message]
2021-09-03  8:10 ` Dan Carpenter
2021-09-03 15:52   ` Krish Jain

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=YTBnyK4li0fq/Uci@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=krishjain02939@gmail.com \
    --cc=linux-staging@lists.linux.dev \
    /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