All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Cover letter
@ 2020-03-09 22:14 Kaaira Gupta
  2020-03-10  7:15 ` [Outreachy kernel] " Julia Lawall
  2020-03-10  9:06 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 10+ messages in thread
From: Kaaira Gupta @ 2020-03-09 22:14 UTC (permalink / raw)
  To: Ian Abbott, H Hartley Sweeten, Greg Kroah-Hartman, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

This patch set aims at improving the code style in a few drivers in
staging. They have been found using sparse, coccinelle, and
checkpatch.pl.



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

* Re: [Outreachy kernel] [PATCH 0/7] Cover letter
  2020-03-09 22:14 [PATCH 0/7] Cover letter Kaaira Gupta
@ 2020-03-10  7:15 ` Julia Lawall
  2020-03-10 12:15   ` Kaaira Gupta
  2020-03-10  9:06 ` Greg Kroah-Hartman
  1 sibling, 1 reply; 10+ messages in thread
From: Julia Lawall @ 2020-03-10  7:15 UTC (permalink / raw)
  To: Kaaira Gupta
  Cc: Ian Abbott, H Hartley Sweeten, Greg Kroah-Hartman, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

On Tue, 10 Mar 2020, Kaaira Gupta wrote:

> This patch set aims at improving the code style in a few drivers in
> staging. They have been found using sparse, coccinelle, and
> checkpatch.pl.

A cover letter should have a more informative subject.  It's obvious that
it is a cover letter from the number of the patch being 0.

The description suggests that there is no connection between the drivers
or the changes being performed.  If that is the case, then there is no
need to make a series.

The cover letter should contain a complete diffstat of the changes made.

You should be able to find some examples on lkml.org.

julia

>
> --
> 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/20200309221449.GA5032%40kaaira-HP-Pavilion-Notebook.
>


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

* Re: [PATCH 0/7] Cover letter
  2020-03-09 22:14 [PATCH 0/7] Cover letter Kaaira Gupta
  2020-03-10  7:15 ` [Outreachy kernel] " Julia Lawall
@ 2020-03-10  9:06 ` Greg Kroah-Hartman
  2020-03-10 12:01   ` [Outreachy kernel] " Kaaira Gupta
  1 sibling, 1 reply; 10+ messages in thread
From: Greg Kroah-Hartman @ 2020-03-10  9:06 UTC (permalink / raw)
  To: Kaaira Gupta
  Cc: Ian Abbott, H Hartley Sweeten, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

On Tue, Mar 10, 2020 at 03:44:49AM +0530, Kaaira Gupta wrote:
> This patch set aims at improving the code style in a few drivers in
> staging. They have been found using sparse, coccinelle, and
> checkpatch.pl.
> 

The cover letter should be auto-generated by 'git format-patch
--cover-letter', and will contain a lot more information than just this
paragraph.

Also, I did not see all 7 patches of this series on the mailing list,
only 4 of them.  They were also not "threaded" properly, can you use
'git send-email' to resend all of these when you redo the series next?

thanks,

greg k-h


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

* Re: [Outreachy kernel] Re: [PATCH 0/7] Cover letter
  2020-03-10  9:06 ` Greg Kroah-Hartman
@ 2020-03-10 12:01   ` Kaaira Gupta
  2020-03-10 12:28     ` Greg Kroah-Hartman
  0 siblings, 1 reply; 10+ messages in thread
From: Kaaira Gupta @ 2020-03-10 12:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Kaaira Gupta, Ian Abbott, H Hartley Sweeten, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

On Tue, Mar 10, 2020 at 10:06:46AM +0100, Greg Kroah-Hartman wrote:
> On Tue, Mar 10, 2020 at 03:44:49AM +0530, Kaaira Gupta wrote:
> > This patch set aims at improving the code style in a few drivers in
> > staging. They have been found using sparse, coccinelle, and
> > checkpatch.pl.
> > 
> 
> The cover letter should be auto-generated by 'git format-patch
> --cover-letter', and will contain a lot more information than just this
> paragraph.
> 
> Also, I did not see all 7 patches of this series on the mailing list,
> only 4 of them.  They were also not "threaded" properly, can you use
> 'git send-email' to resend all of these when you redo the series next?

Can you please guide me as to how I should thread the patches in a
patchset properly so that individual commits get to different patches 
and a cover-letter is generated as well. I am using mutt.

> 
> thanks,
> 
> greg k-h
> 
> -- 
> 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/20200310090646.GA2479270%40kroah.com.


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

* Re: [Outreachy kernel] [PATCH 0/7] Cover letter
  2020-03-10  7:15 ` [Outreachy kernel] " Julia Lawall
@ 2020-03-10 12:15   ` Kaaira Gupta
  2020-03-10 13:17     ` Julia Lawall
  0 siblings, 1 reply; 10+ messages in thread
From: Kaaira Gupta @ 2020-03-10 12:15 UTC (permalink / raw)
  To: Julia Lawall
  Cc: Kaaira Gupta, Ian Abbott, H Hartley Sweeten, Greg Kroah-Hartman,
	Forest Bond, Jérôme Pouiller, outreachy-kernel

On Tue, Mar 10, 2020 at 08:15:51AM +0100, Julia Lawall wrote:
> On Tue, 10 Mar 2020, Kaaira Gupta wrote:
> 
> > This patch set aims at improving the code style in a few drivers in
> > staging. They have been found using sparse, coccinelle, and
> > checkpatch.pl.
> 
> A cover letter should have a more informative subject.  It's obvious that
> it is a cover letter from the number of the patch being 0.
> 
> The description suggests that there is no connection between the drivers
> or the changes being performed.  If that is the case, then there is no
> need to make a series.

What kind of patch sets should Ithen submit? Please guide me.

> 
> The cover letter should contain a complete diffstat of the changes made.
> 
> You should be able to find some examples on lkml.org.
> 
> julia
> 
> >
> > --
> > 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/20200309221449.GA5032%40kaaira-HP-Pavilion-Notebook.
> >


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

* Re: [Outreachy kernel] Re: [PATCH 0/7] Cover letter
  2020-03-10 12:01   ` [Outreachy kernel] " Kaaira Gupta
@ 2020-03-10 12:28     ` Greg Kroah-Hartman
  2020-03-10 12:54       ` Kaaira Gupta
  0 siblings, 1 reply; 10+ messages in thread
From: Greg Kroah-Hartman @ 2020-03-10 12:28 UTC (permalink / raw)
  To: Kaaira Gupta
  Cc: Ian Abbott, H Hartley Sweeten, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

On Tue, Mar 10, 2020 at 05:31:13PM +0530, Kaaira Gupta wrote:
> On Tue, Mar 10, 2020 at 10:06:46AM +0100, Greg Kroah-Hartman wrote:
> > On Tue, Mar 10, 2020 at 03:44:49AM +0530, Kaaira Gupta wrote:
> > > This patch set aims at improving the code style in a few drivers in
> > > staging. They have been found using sparse, coccinelle, and
> > > checkpatch.pl.
> > > 
> > 
> > The cover letter should be auto-generated by 'git format-patch
> > --cover-letter', and will contain a lot more information than just this
> > paragraph.
> > 
> > Also, I did not see all 7 patches of this series on the mailing list,
> > only 4 of them.  They were also not "threaded" properly, can you use
> > 'git send-email' to resend all of these when you redo the series next?
> 
> Can you please guide me as to how I should thread the patches in a
> patchset properly so that individual commits get to different patches 
> and a cover-letter is generated as well. I am using mutt.

If you use 'git send-email' you do not have to use mutt to send the
patches out.

If you are using mutt, you can send a patch series, but you have to do
it "by hand" and it's not simple to describe through email, and only
recommended if you _really_ know how to use mutt :)

thanks,

greg k-h


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

* Re: [Outreachy kernel] Re: [PATCH 0/7] Cover letter
  2020-03-10 12:28     ` Greg Kroah-Hartman
@ 2020-03-10 12:54       ` Kaaira Gupta
  2020-03-10 13:12         ` Julia Lawall
  2020-03-10 13:18         ` Greg Kroah-Hartman
  0 siblings, 2 replies; 10+ messages in thread
From: Kaaira Gupta @ 2020-03-10 12:54 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: Kaaira Gupta, Ian Abbott, H Hartley Sweeten, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

On Tue, Mar 10, 2020 at 01:28:52PM +0100, Greg Kroah-Hartman wrote:
> On Tue, Mar 10, 2020 at 05:31:13PM +0530, Kaaira Gupta wrote:
> > On Tue, Mar 10, 2020 at 10:06:46AM +0100, Greg Kroah-Hartman wrote:
> > > On Tue, Mar 10, 2020 at 03:44:49AM +0530, Kaaira Gupta wrote:
> > > > This patch set aims at improving the code style in a few drivers in
> > > > staging. They have been found using sparse, coccinelle, and
> > > > checkpatch.pl.
> > > > 
> > > 
> > > The cover letter should be auto-generated by 'git format-patch
> > > --cover-letter', and will contain a lot more information than just this
> > > paragraph.
> > > 
> > > Also, I did not see all 7 patches of this series on the mailing list,
> > > only 4 of them.  They were also not "threaded" properly, can you use
> > > 'git send-email' to resend all of these when you redo the series next?
> > 
> > Can you please guide me as to how I should thread the patches in a
> > patchset properly so that individual commits get to different patches 
> > and a cover-letter is generated as well. I am using mutt.
> 
> If you use 'git send-email' you do not have to use mutt to send the
> patches out.
> 
> If you are using mutt, you can send a patch series, but you have to do
> it "by hand" and it's not simple to describe through email, and only
> recommended if you _really_ know how to use mutt :)

Okay. So just to be sure I think I should describe how I understood
`send-email` must be used, as I have been using only mutt for a month
now. I'll create individual file changes, commit them one by one,the
format a cover letter using `git format-patch --cover-letter`, then give
command `git send-email --annotate HEAD~(no of commits), and the patchet
will be generated automatically (?). I'll jest have to send them.

Thanks for the time!

> 
> thanks,
> 
> greg k-h


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

* Re: [Outreachy kernel] Re: [PATCH 0/7] Cover letter
  2020-03-10 12:54       ` Kaaira Gupta
@ 2020-03-10 13:12         ` Julia Lawall
  2020-03-10 13:18         ` Greg Kroah-Hartman
  1 sibling, 0 replies; 10+ messages in thread
From: Julia Lawall @ 2020-03-10 13:12 UTC (permalink / raw)
  To: Kaaira Gupta
  Cc: Greg Kroah-Hartman, Ian Abbott, H Hartley Sweeten, Forest Bond,
	Jérôme Pouiller, outreachy-kernel



On Tue, 10 Mar 2020, Kaaira Gupta wrote:

> On Tue, Mar 10, 2020 at 01:28:52PM +0100, Greg Kroah-Hartman wrote:
> > On Tue, Mar 10, 2020 at 05:31:13PM +0530, Kaaira Gupta wrote:
> > > On Tue, Mar 10, 2020 at 10:06:46AM +0100, Greg Kroah-Hartman wrote:
> > > > On Tue, Mar 10, 2020 at 03:44:49AM +0530, Kaaira Gupta wrote:
> > > > > This patch set aims at improving the code style in a few drivers in
> > > > > staging. They have been found using sparse, coccinelle, and
> > > > > checkpatch.pl.
> > > > >
> > > >
> > > > The cover letter should be auto-generated by 'git format-patch
> > > > --cover-letter', and will contain a lot more information than just this
> > > > paragraph.
> > > >
> > > > Also, I did not see all 7 patches of this series on the mailing list,
> > > > only 4 of them.  They were also not "threaded" properly, can you use
> > > > 'git send-email' to resend all of these when you redo the series next?
> > >
> > > Can you please guide me as to how I should thread the patches in a
> > > patchset properly so that individual commits get to different patches
> > > and a cover-letter is generated as well. I am using mutt.
> >
> > If you use 'git send-email' you do not have to use mutt to send the
> > patches out.
> >
> > If you are using mutt, you can send a patch series, but you have to do
> > it "by hand" and it's not simple to describe through email, and only
> > recommended if you _really_ know how to use mutt :)
>
> Okay. So just to be sure I think I should describe how I understood
> `send-email` must be used, as I have been using only mutt for a month
> now. I'll create individual file changes, commit them one by one,the
> format a cover letter using `git format-patch --cover-letter`, then give
> command `git send-email --annotate HEAD~(no of commits), and the patchet
> will be generated automatically (?). I'll jest have to send them.

git format-patch generates them.  git send-email sends them.  But git will
need some information about how to send mail.  Search for send-email in
the tutorial.

julia


>
> Thanks for the time!
>
> >
> > thanks,
> >
> > greg k-h
>
> --
> 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/20200310125424.GA22891%40kaaira-HP-Pavilion-Notebook.
>


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

* Re: [Outreachy kernel] [PATCH 0/7] Cover letter
  2020-03-10 12:15   ` Kaaira Gupta
@ 2020-03-10 13:17     ` Julia Lawall
  0 siblings, 0 replies; 10+ messages in thread
From: Julia Lawall @ 2020-03-10 13:17 UTC (permalink / raw)
  To: Kaaira Gupta
  Cc: Ian Abbott, H Hartley Sweeten, Greg Kroah-Hartman, Forest Bond,
	Jérôme Pouiller, outreachy-kernel



On Tue, 10 Mar 2020, Kaaira Gupta wrote:

> On Tue, Mar 10, 2020 at 08:15:51AM +0100, Julia Lawall wrote:
> > On Tue, 10 Mar 2020, Kaaira Gupta wrote:
> >
> > > This patch set aims at improving the code style in a few drivers in
> > > staging. They have been found using sparse, coccinelle, and
> > > checkpatch.pl.
> >
> > A cover letter should have a more informative subject.  It's obvious that
> > it is a cover letter from the number of the patch being 0.
> >
> > The description suggests that there is no connection between the drivers
> > or the changes being performed.  If that is the case, then there is no
> > need to make a series.
>
> What kind of patch sets should Ithen submit? Please guide me.

For one driver file perhaps you find a spelling mistake, some extra blank
lines, and a useless function definition.  These are three separate
changes, so they shoudn't be in the same patch.  But for example if the
extra blank lines are before the useless function definition, then Greg
will see the function definition being removed from the wrong place, if he
applies the patches in the wrong order.  So you need a series to indicate
the order in which the patches should be applied.

julia

>
> >
> > The cover letter should contain a complete diffstat of the changes made.
> >
> > You should be able to find some examples on lkml.org.
> >
> > julia
> >
> > >
> > > --
> > > 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/20200309221449.GA5032%40kaaira-HP-Pavilion-Notebook.
> > >
>


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

* Re: [Outreachy kernel] Re: [PATCH 0/7] Cover letter
  2020-03-10 12:54       ` Kaaira Gupta
  2020-03-10 13:12         ` Julia Lawall
@ 2020-03-10 13:18         ` Greg Kroah-Hartman
  1 sibling, 0 replies; 10+ messages in thread
From: Greg Kroah-Hartman @ 2020-03-10 13:18 UTC (permalink / raw)
  To: Kaaira Gupta
  Cc: Ian Abbott, H Hartley Sweeten, Forest Bond,
	Jérôme Pouiller, outreachy-kernel

On Tue, Mar 10, 2020 at 06:24:24PM +0530, Kaaira Gupta wrote:
> On Tue, Mar 10, 2020 at 01:28:52PM +0100, Greg Kroah-Hartman wrote:
> > On Tue, Mar 10, 2020 at 05:31:13PM +0530, Kaaira Gupta wrote:
> > > On Tue, Mar 10, 2020 at 10:06:46AM +0100, Greg Kroah-Hartman wrote:
> > > > On Tue, Mar 10, 2020 at 03:44:49AM +0530, Kaaira Gupta wrote:
> > > > > This patch set aims at improving the code style in a few drivers in
> > > > > staging. They have been found using sparse, coccinelle, and
> > > > > checkpatch.pl.
> > > > > 
> > > > 
> > > > The cover letter should be auto-generated by 'git format-patch
> > > > --cover-letter', and will contain a lot more information than just this
> > > > paragraph.
> > > > 
> > > > Also, I did not see all 7 patches of this series on the mailing list,
> > > > only 4 of them.  They were also not "threaded" properly, can you use
> > > > 'git send-email' to resend all of these when you redo the series next?
> > > 
> > > Can you please guide me as to how I should thread the patches in a
> > > patchset properly so that individual commits get to different patches 
> > > and a cover-letter is generated as well. I am using mutt.
> > 
> > If you use 'git send-email' you do not have to use mutt to send the
> > patches out.
> > 
> > If you are using mutt, you can send a patch series, but you have to do
> > it "by hand" and it's not simple to describe through email, and only
> > recommended if you _really_ know how to use mutt :)
> 
> Okay. So just to be sure I think I should describe how I understood
> `send-email` must be used, as I have been using only mutt for a month
> now. I'll create individual file changes, commit them one by one,the
> format a cover letter using `git format-patch --cover-letter`, then give
> command `git send-email --annotate HEAD~(no of commits), and the patchet
> will be generated automatically (?). I'll jest have to send them.

Close.

Commit the individual patches as before, then run:
	git format-patch --cover-letter HEAD~(no of commits)
that will throw you in the editor to edit the cover letter, which will
end up as the 00/NN mesage.

Then, run 'git send-email *patch' (making sure that _only_ the patches
you want to send out are in the directory).  That will email everything
out properly.  Note, you do have to set up git send-email properly to
point to your mail server, instructions on how to that should be around
somewhere, or try this page:
	https://git-send-email.io/
as it will walk you through what to do to set it up.

hope this helps,

greg k-h


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

end of thread, other threads:[~2020-03-10 13:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-09 22:14 [PATCH 0/7] Cover letter Kaaira Gupta
2020-03-10  7:15 ` [Outreachy kernel] " Julia Lawall
2020-03-10 12:15   ` Kaaira Gupta
2020-03-10 13:17     ` Julia Lawall
2020-03-10  9:06 ` Greg Kroah-Hartman
2020-03-10 12:01   ` [Outreachy kernel] " Kaaira Gupta
2020-03-10 12:28     ` Greg Kroah-Hartman
2020-03-10 12:54       ` Kaaira Gupta
2020-03-10 13:12         ` Julia Lawall
2020-03-10 13:18         ` Greg Kroah-Hartman

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.