kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* question on patch submission
@ 2017-04-28 12:49 Michael Mera
  2017-04-28 13:01 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Mera @ 2017-04-28 12:49 UTC (permalink / raw)
  To: kernelnewbies

Hello,

As part of the eudyptula challenge I submitted a coding style patch on
staging (that you can find here: https://lkml.org/lkml/2017/4/28/148)

I had read beforehand the submission guidelines, but I still have some
questions which I think are more appropriate posted here than as an
answer to the patch thread:

- the patch is clear with "checkpatch.pl --strict", but there are some
  tabs in the middle of the line. In my editor and apparently with
  checkpatch.pl those tabs are used for alignment (so spend less than 8
  characters) so that the total of the line in less than 80 characters.
  In the submitted patch however, due to the +- at the beginning of the
  line they appear larger and thus the line in more than 80 character.

  My question is: Should I consider the patch clean or interpret the
  guideline "tabs are 8 characters" strictly (and not tabs "at the
  beginning on the line" are 8 characters)?

- when I make modification to the patch message but not the diff lines,
  should I still increment the patch version, or rather maybe resend it
  with something like RESEND in the subject?

Sorry if these are written in the doc, I reread it but couldn't find
clear answers (and sorry to Greg Kroah-Hartma who has to read my dumb
submissions both here and in the kernel mailing list).

Thank you,
Michael Mera

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

* question on patch submission
  2017-04-28 12:49 question on patch submission Michael Mera
@ 2017-04-28 13:01 ` Greg KH
  2017-04-28 14:52   ` Michael Mera
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2017-04-28 13:01 UTC (permalink / raw)
  To: kernelnewbies

On Fri, Apr 28, 2017 at 09:49:05PM +0900, Michael Mera wrote:
> Hello,
> 
> As part of the eudyptula challenge I submitted a coding style patch on
> staging (that you can find here: https://lkml.org/lkml/2017/4/28/148)
> 
> I had read beforehand the submission guidelines, but I still have some
> questions which I think are more appropriate posted here than as an
> answer to the patch thread:
> 
> - the patch is clear with "checkpatch.pl --strict", but there are some
>   tabs in the middle of the line. In my editor and apparently with
>   checkpatch.pl those tabs are used for alignment (so spend less than 8
>   characters) so that the total of the line in less than 80 characters.
>   In the submitted patch however, due to the +- at the beginning of the
>   line they appear larger and thus the line in more than 80 character.
> 
>   My question is: Should I consider the patch clean or interpret the
>   guideline "tabs are 8 characters" strictly (and not tabs "at the
>   beginning on the line" are 8 characters)?

tabs are always intrepted at 8 character "stops" for kernel development.
Look at other patches on the mailing list and in your editor, all should
be fine when you create it using git.

> - when I make modification to the patch message but not the diff lines,
>   should I still increment the patch version, or rather maybe resend it
>   with something like RESEND in the subject?

Yes, make it a new version, as the version is the combination of both.
Make it trivially easy for a maintainer to know which version to accept.
Marking it as "RESEND" implies that either patch submission could be
accepted, but marking it with a version is explicit as to which you
should use.

thanks,

greg k-h

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

* question on patch submission
  2017-04-28 13:01 ` Greg KH
@ 2017-04-28 14:52   ` Michael Mera
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Mera @ 2017-04-28 14:52 UTC (permalink / raw)
  To: kernelnewbies

Greg KH <greg@kroah.com> writes:
> Look at other patches on the mailing list and in your editor, all should
> be fine when you create it using git.

Ok. I indeed created it with git.

> Yes, make it a new version, as the version is the combination of both.
> Make it trivially easy for a maintainer to know which version to accept.
> Marking it as "RESEND" implies that either patch submission could be
> accepted, but marking it with a version is explicit as to which you
> should use.

Ok, I submitted a new version which I hope will be more appropriate.

> thanks,
>
> greg k-h

Thank you for taking the time to review these. Hopefully it will be less
painful for the futur patches.

Michael Mera

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

end of thread, other threads:[~2017-04-28 14:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-28 12:49 question on patch submission Michael Mera
2017-04-28 13:01 ` Greg KH
2017-04-28 14:52   ` Michael Mera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).