All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-02 11:13 [PATCH] Fix formatting for file "hsdma-mt7621.c" Krish Jain
@ 2021-09-02  9:09 ` Greg KH
  2021-09-02 20:24   ` Krish Jain
  2021-09-03 15:49   ` Krish Jain
  0 siblings, 2 replies; 12+ messages in thread
From: Greg KH @ 2021-09-02  9:09 UTC (permalink / raw)
  To: Krish Jain; +Cc: linux-staging

On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.

Please properly line-wrap your changelog text like your editor asked you
to.

Also, your subject line needs work, look at other commits for this
driver with:
	git log --oneline drivers/staging/mt7621-dma/
and notice how they say the driver name and the subsystem.

Please fix up and resend a v2.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] Fix formatting for file "hsdma-mt7621.c"
@ 2021-09-02 11:13 Krish Jain
  2021-09-02  9:09 ` Greg KH
  0 siblings, 1 reply; 12+ messages in thread
From: Krish Jain @ 2021-09-02 11:13 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging

This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.

Signed-off-by: Krish Jain <krishjain02939@gmail.com>

---
 drivers/staging/mt7621-dma/hsdma-mt7621.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/mt7621-dma/hsdma-mt7621.c b/drivers/staging/mt7621-dma/hsdma-mt7621.c
index b0ed935de7ac..89b72a802800 100644
--- a/drivers/staging/mt7621-dma/hsdma-mt7621.c
+++ b/drivers/staging/mt7621-dma/hsdma-mt7621.c
@@ -162,8 +162,7 @@ struct mtk_hsdam_engine {
 	struct mtk_hsdma_chan chan[1];
 };
 
-static inline struct mtk_hsdam_engine *mtk_hsdma_chan_get_dev(
-		struct mtk_hsdma_chan *chan)
+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);
@@ -174,8 +173,7 @@ static inline struct mtk_hsdma_chan *to_mtk_hsdma_chan(struct dma_chan *c)
 	return container_of(c, struct mtk_hsdma_chan, vchan.chan);
 }
 
-static inline struct mtk_hsdma_desc *to_mtk_hsdma_desc(
-		struct virt_dma_desc *vdesc)
+static inline struct mtk_hsdma_desc *to_mtk_hsdma_desc(struct virt_dma_desc *vdesc)
 {
 	return container_of(vdesc, struct mtk_hsdma_desc, vdesc);
 }
@@ -457,9 +455,7 @@ static void mtk_hsdma_issue_pending(struct dma_chan *c)
 	spin_unlock_bh(&chan->vchan.lock);
 }
 
-static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(
-		struct dma_chan *c, dma_addr_t dest, dma_addr_t src,
-		size_t len, unsigned long flags)
+static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(struct dma_chan *c, dma_addr_t dest, dma_addr_t src, size_t len, unsigned long flags)
 {
 	struct mtk_hsdma_chan *chan = to_mtk_hsdma_chan(c);
 	struct mtk_hsdma_desc *desc;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-02  9:09 ` Greg KH
@ 2021-09-02 20:24   ` Krish Jain
  2021-09-03  6:24     ` Greg KH
  2021-09-03 15:49   ` Krish Jain
  1 sibling, 1 reply; 12+ messages in thread
From: Krish Jain @ 2021-09-02 20:24 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging

Hi, I use nano. I don't see my editor asking me to wrap the changelog
text? What exactly can I do to get it properly line wrapped properly?

Best Regards,

Krish

On Thu, Sep 2, 2021 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> > This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
>
> Please properly line-wrap your changelog text like your editor asked you
> to.
>
> Also, your subject line needs work, look at other commits for this
> driver with:
>         git log --oneline drivers/staging/mt7621-dma/
> and notice how they say the driver name and the subsystem.
>
> Please fix up and resend a v2.
>
> thanks,
>
> greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-02 20:24   ` Krish Jain
@ 2021-09-03  6:24     ` Greg KH
  2021-09-03 15:30       ` Krish Jain
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2021-09-03  6:24 UTC (permalink / raw)
  To: Krish Jain; +Cc: linux-staging

A: http://en.wikipedia.org/wiki/Top_post
Q: Were do I find info about this thing called top-posting?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

A: No.
Q: Should I include quotations after my reply?

http://daringfireball.net/2007/07/on_top

On Thu, Sep 02, 2021 at 10:24:47PM +0200, Krish Jain wrote:
> Hi, I use nano. I don't see my editor asking me to wrap the changelog
> text? What exactly can I do to get it properly line wrapped properly?

If you have an editor that is not set up to wrap your lines at 72
columns, then you need to do it "by hand".

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-03  6:24     ` Greg KH
@ 2021-09-03 15:30       ` Krish Jain
  0 siblings, 0 replies; 12+ messages in thread
From: Krish Jain @ 2021-09-03 15:30 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging

On Fri, Sep 3, 2021 at 8:24 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> A: http://en.wikipedia.org/wiki/Top_post
> Q: Were do I find info about this thing called top-posting?
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> A: No.
> Q: Should I include quotations after my reply?
>
> http://daringfireball.net/2007/07/on_top
>
> On Thu, Sep 02, 2021 at 10:24:47PM +0200, Krish Jain wrote:
> > Hi, I use nano. I don't see my editor asking me to wrap the changelog
> > text? What exactly can I do to get it properly line wrapped properly?
>
> If you have an editor that is not set up to wrap your lines at 72
> columns, then you need to do it "by hand".
>
> thanks,
>
> greg k-h

Ok, doing that right now. And sorry about top posting, you know it
takes a while till a habit goes away. On autopilot mode, I just am
used to writing on top.


Best Regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-02  9:09 ` Greg KH
  2021-09-02 20:24   ` Krish Jain
@ 2021-09-03 15:49   ` Krish Jain
  2021-09-03 17:11     ` Greg KH
  1 sibling, 1 reply; 12+ messages in thread
From: Krish Jain @ 2021-09-03 15:49 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging

On Thu, Sep 2, 2021 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> > This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
>
> Please properly line-wrap your changelog text like your editor asked you
> to.
>
> Also, your subject line needs work, look at other commits for this
> driver with:
>         git log --oneline drivers/staging/mt7621-dma/
> and notice how they say the driver name and the subsystem.
>
> Please fix up and resend a v2.
>
> thanks,
>
> greg k-h

Do you mean I should line-wrap (at 72 columns) the entire thing or
only that line? " This patch fixes the format of the code. It properly
formats lines that should not end with a '(' as suggested by
checkpath.pl."

Best Regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-03 15:49   ` Krish Jain
@ 2021-09-03 17:11     ` Greg KH
  2021-09-03 18:54       ` Krish Jain
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2021-09-03 17:11 UTC (permalink / raw)
  To: Krish Jain; +Cc: linux-staging

On Fri, Sep 03, 2021 at 05:49:46PM +0200, Krish Jain wrote:
> On Thu, Sep 2, 2021 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> > > This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
> >
> > Please properly line-wrap your changelog text like your editor asked you
> > to.
> >
> > Also, your subject line needs work, look at other commits for this
> > driver with:
> >         git log --oneline drivers/staging/mt7621-dma/
> > and notice how they say the driver name and the subsystem.
> >
> > Please fix up and resend a v2.
> >
> > thanks,
> >
> > greg k-h
> 
> Do you mean I should line-wrap (at 72 columns) the entire thing or
> only that line?

Your whole changelog text needs to be wrapped at 72 columns.

Look at the 'git log' in the kernel tree for hundreds of thousands of
examples :)

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-03 17:11     ` Greg KH
@ 2021-09-03 18:54       ` Krish Jain
  2021-09-04  6:02         ` Greg KH
  0 siblings, 1 reply; 12+ messages in thread
From: Krish Jain @ 2021-09-03 18:54 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging

On Fri, Sep 3, 2021 at 7:11 PM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Fri, Sep 03, 2021 at 05:49:46PM +0200, Krish Jain wrote:
> > On Thu, Sep 2, 2021 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> > > > This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
> > >
> > > Please properly line-wrap your changelog text like your editor asked you
> > > to.
> > >
> > > Also, your subject line needs work, look at other commits for this
> > > driver with:
> > >         git log --oneline drivers/staging/mt7621-dma/
> > > and notice how they say the driver name and the subsystem.
> > >
> > > Please fix up and resend a v2.
> > >
> > > thanks,
> > >
> > > greg k-h
> >
> > Do you mean I should line-wrap (at 72 columns) the entire thing or
> > only that line?
>
> Your whole changelog text needs to be wrapped at 72 columns.
>
> Look at the 'git log' in the kernel tree for hundreds of thousands of
> examples :)
>
> thanks,
>
> greg k-h

Hi, so you mean only the change-log text (as in the text telling what
changes have been made) needs to be wrapped at 72 columns but the code
itself (the git diff) doesn't, right ? Because then the entire purpose
of my formatting the code will be lost. Sorry for the confusion.
Learning


Best Regards,

Krish

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-03 18:54       ` Krish Jain
@ 2021-09-04  6:02         ` Greg KH
  2021-09-04 11:11           ` Krish Jain
  0 siblings, 1 reply; 12+ messages in thread
From: Greg KH @ 2021-09-04  6:02 UTC (permalink / raw)
  To: Krish Jain; +Cc: linux-staging

On Fri, Sep 03, 2021 at 08:54:33PM +0200, Krish Jain wrote:
> On Fri, Sep 3, 2021 at 7:11 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> >
> > On Fri, Sep 03, 2021 at 05:49:46PM +0200, Krish Jain wrote:
> > > On Thu, Sep 2, 2021 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote:
> > > >
> > > > On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> > > > > This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
> > > >
> > > > Please properly line-wrap your changelog text like your editor asked you
> > > > to.
> > > >
> > > > Also, your subject line needs work, look at other commits for this
> > > > driver with:
> > > >         git log --oneline drivers/staging/mt7621-dma/
> > > > and notice how they say the driver name and the subsystem.
> > > >
> > > > Please fix up and resend a v2.
> > > >
> > > > thanks,
> > > >
> > > > greg k-h
> > >
> > > Do you mean I should line-wrap (at 72 columns) the entire thing or
> > > only that line?
> >
> > Your whole changelog text needs to be wrapped at 72 columns.
> >
> > Look at the 'git log' in the kernel tree for hundreds of thousands of
> > examples :)
> >
> > thanks,
> >
> > greg k-h
> 
> Hi, so you mean only the change-log text (as in the text telling what
> changes have been made) needs to be wrapped at 72 columns but the code
> itself (the git diff) doesn't, right ?

Yes, just the text that you add to the commit message.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-04  6:02         ` Greg KH
@ 2021-09-04 11:11           ` Krish Jain
  0 siblings, 0 replies; 12+ messages in thread
From: Krish Jain @ 2021-09-04 11:11 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging

On Sat, Sep 4, 2021 at 8:02 AM Greg KH <gregkh@linuxfoundation.org> wrote:
>
> On Fri, Sep 03, 2021 at 08:54:33PM +0200, Krish Jain wrote:
> > On Fri, Sep 3, 2021 at 7:11 PM Greg KH <gregkh@linuxfoundation.org> wrote:
> > >
> > > On Fri, Sep 03, 2021 at 05:49:46PM +0200, Krish Jain wrote:
> > > > On Thu, Sep 2, 2021 at 11:09 AM Greg KH <gregkh@linuxfoundation.org> wrote:
> > > > >
> > > > > On Thu, Sep 02, 2021 at 01:13:39PM +0200, Krish Jain wrote:
> > > > > > This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
> > > > >
> > > > > Please properly line-wrap your changelog text like your editor asked you
> > > > > to.
> > > > >
> > > > > Also, your subject line needs work, look at other commits for this
> > > > > driver with:
> > > > >         git log --oneline drivers/staging/mt7621-dma/
> > > > > and notice how they say the driver name and the subsystem.
> > > > >
> > > > > Please fix up and resend a v2.
> > > > >
> > > > > thanks,
> > > > >
> > > > > greg k-h
> > > >
> > > > Do you mean I should line-wrap (at 72 columns) the entire thing or
> > > > only that line?
> > >
> > > Your whole changelog text needs to be wrapped at 72 columns.
> > >
> > > Look at the 'git log' in the kernel tree for hundreds of thousands of
> > > examples :)
> > >
> > > thanks,
> > >
> > > greg k-h
> >
> > Hi, so you mean only the change-log text (as in the text telling what
> > changes have been made) needs to be wrapped at 72 columns but the code
> > itself (the git diff) doesn't, right ?
>
> Yes, just the text that you add to the commit message.
>


Oh, wow, thank you. That's rather easy. You'll have it ASAP when I reach home


Best Regards

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH] Fix formatting for file "hsdma-mt7621.c"
@ 2021-09-02 11:11 Krish Jain
  2021-09-01 21:37 ` Krish Jain
  0 siblings, 1 reply; 12+ messages in thread
From: Krish Jain @ 2021-09-02 11:11 UTC (permalink / raw)
  To: gregkh; +Cc: linux-staging

From: Krish Jain <krishjain02939@gmail.com>

This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.

Signed-off-by: Krish Jain <krishjain02939@gmail.com>

---
 drivers/staging/mt7621-dma/hsdma-mt7621.c | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/mt7621-dma/hsdma-mt7621.c b/drivers/staging/mt7621-dma/hsdma-mt7621.c
index b0ed935de7ac..89b72a802800 100644
--- a/drivers/staging/mt7621-dma/hsdma-mt7621.c
+++ b/drivers/staging/mt7621-dma/hsdma-mt7621.c
@@ -162,8 +162,7 @@ struct mtk_hsdam_engine {
 	struct mtk_hsdma_chan chan[1];
 };
 
-static inline struct mtk_hsdam_engine *mtk_hsdma_chan_get_dev(
-		struct mtk_hsdma_chan *chan)
+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);
@@ -174,8 +173,7 @@ static inline struct mtk_hsdma_chan *to_mtk_hsdma_chan(struct dma_chan *c)
 	return container_of(c, struct mtk_hsdma_chan, vchan.chan);
 }
 
-static inline struct mtk_hsdma_desc *to_mtk_hsdma_desc(
-		struct virt_dma_desc *vdesc)
+static inline struct mtk_hsdma_desc *to_mtk_hsdma_desc(struct virt_dma_desc *vdesc)
 {
 	return container_of(vdesc, struct mtk_hsdma_desc, vdesc);
 }
@@ -457,9 +455,7 @@ static void mtk_hsdma_issue_pending(struct dma_chan *c)
 	spin_unlock_bh(&chan->vchan.lock);
 }
 
-static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(
-		struct dma_chan *c, dma_addr_t dest, dma_addr_t src,
-		size_t len, unsigned long flags)
+static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(struct dma_chan *c, dma_addr_t dest, dma_addr_t src, size_t len, unsigned long flags)
 {
 	struct mtk_hsdma_chan *chan = to_mtk_hsdma_chan(c);
 	struct mtk_hsdma_desc *desc;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

* Re: [PATCH] Fix formatting for file "hsdma-mt7621.c"
  2021-09-02 11:11 Krish Jain
@ 2021-09-01 21:37 ` Krish Jain
  0 siblings, 0 replies; 12+ messages in thread
From: Krish Jain @ 2021-09-01 21:37 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-staging

On Wed, Sep 1, 2021 at 11:36 PM Krish Jain <krishjain02939@gmail.com> wrote:
>
> From: Krish Jain <krishjain02939@gmail.com>
>
> This patch fixes the format of the code. It properly formats lines that should not end with a '(' as suggested by checkpath.pl.
>
> Signed-off-by: Krish Jain <krishjain02939@gmail.com>
>
> ---
>  drivers/staging/mt7621-dma/hsdma-mt7621.c | 10 +++-------
>  1 file changed, 3 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/staging/mt7621-dma/hsdma-mt7621.c b/drivers/staging/mt7621-dma/hsdma-mt7621.c
> index b0ed935de7ac..89b72a802800 100644
> --- a/drivers/staging/mt7621-dma/hsdma-mt7621.c
> +++ b/drivers/staging/mt7621-dma/hsdma-mt7621.c
> @@ -162,8 +162,7 @@ struct mtk_hsdam_engine {
>         struct mtk_hsdma_chan chan[1];
>  };
>
> -static inline struct mtk_hsdam_engine *mtk_hsdma_chan_get_dev(
> -               struct mtk_hsdma_chan *chan)
> +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);
> @@ -174,8 +173,7 @@ static inline struct mtk_hsdma_chan *to_mtk_hsdma_chan(struct dma_chan *c)
>         return container_of(c, struct mtk_hsdma_chan, vchan.chan);
>  }
>
> -static inline struct mtk_hsdma_desc *to_mtk_hsdma_desc(
> -               struct virt_dma_desc *vdesc)
> +static inline struct mtk_hsdma_desc *to_mtk_hsdma_desc(struct virt_dma_desc *vdesc)
>  {
>         return container_of(vdesc, struct mtk_hsdma_desc, vdesc);
>  }
> @@ -457,9 +455,7 @@ static void mtk_hsdma_issue_pending(struct dma_chan *c)
>         spin_unlock_bh(&chan->vchan.lock);
>  }
>
> -static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(
> -               struct dma_chan *c, dma_addr_t dest, dma_addr_t src,
> -               size_t len, unsigned long flags)
> +static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(struct dma_chan *c, dma_addr_t dest, dma_addr_t src, size_t len, unsigned long flags)
>  {
>         struct mtk_hsdma_chan *chan = to_mtk_hsdma_chan(c);
>         struct mtk_hsdma_desc *desc;
> --
> 2.25.1
>


I am messing up on my mail client. Sorry again. Please ignore this mail

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-09-04 11:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-02 11:13 [PATCH] Fix formatting for file "hsdma-mt7621.c" Krish Jain
2021-09-02  9:09 ` Greg KH
2021-09-02 20:24   ` Krish Jain
2021-09-03  6:24     ` Greg KH
2021-09-03 15:30       ` Krish Jain
2021-09-03 15:49   ` Krish Jain
2021-09-03 17:11     ` Greg KH
2021-09-03 18:54       ` Krish Jain
2021-09-04  6:02         ` Greg KH
2021-09-04 11:11           ` Krish Jain
  -- strict thread matches above, loose matches on Subject: below --
2021-09-02 11:11 Krish Jain
2021-09-01 21:37 ` Krish Jain

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.