Skip to contentSkip to conversation

question on patch submission

DISCUSSION Michael Mera 2 participants 3 messages Apr 28, 2017

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 16 lines · Michael Mera

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.

Quoted 3 lines

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.

Quoted 3 lines

- 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

#2 lore raw
Quoted 2 lines · Greg KH

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.

Quoted 5 lines

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.

Quoted 3 lines

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