* [Q] Sending a large patch
@ 2014-05-14 0:48 Masaru Nomura
2014-05-14 7:35 ` Dan Carpenter
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: Masaru Nomura @ 2014-05-14 0:48 UTC (permalink / raw)
To: kernel-janitors
Hi,
Can anyone help me with “how to properly deal with a large patch” please?
Now, I'm cleaning up a file and it has over 100 warnings of line over
80 character issues. As the problem seems to be the same, I may
correct the bugs and send one commit. But I think it's a pain for
reviewers to check all of them within one patch.
What do you think I could do?
Thank you in advance,
Masaru
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Q] Sending a large patch
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
@ 2014-05-14 7:35 ` Dan Carpenter
2014-05-14 10:47 ` Bernd Petrovitsch
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2014-05-14 7:35 UTC (permalink / raw)
To: kernel-janitors
On Wed, May 14, 2014 at 01:48:48AM +0100, Masaru Nomura wrote:
> Hi,
>
> Can anyone help me with “how to properly deal with a large patch” please?
>
> Now, I'm cleaning up a file and it has over 100 warnings of line over
> 80 character issues. As the problem seems to be the same, I may
> correct the bugs and send one commit. But I think it's a pain for
> reviewers to check all of them within one patch.
>
> What do you think I could do?
100 is not bad. Is this is all in one driver? I say go ahead and send
it.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Q] Sending a large patch
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
2014-05-14 7:35 ` Dan Carpenter
@ 2014-05-14 10:47 ` Bernd Petrovitsch
2014-05-14 14:07 ` Masaru Nomura
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Bernd Petrovitsch @ 2014-05-14 10:47 UTC (permalink / raw)
To: kernel-janitors
On Mit, 2014-05-14 at 01:48 +0100, Masaru Nomura wrote:
[...]
> Now, I'm cleaning up a file and it has over 100 warnings of line over
> 80 character issues. As the problem seems to be the same, I may
And you are really sure that is more readable afterwards with the
additional line breaks?
> correct the bugs and send one commit. But I think it's a pain for
> reviewers to check all of them within one patch.
Apart from the questionable usefulness of the above, you should split it
per subsystem/maintainer so that people do not need to look for "their"
parts.
Additionally, the maintainer may take the patch (and you are done) or
reject it (and you are also done;-).
Bernd
--
Bernd Petrovitsch Email : bernd@petrovitsch.priv.at
LUGA : http://www.luga.at
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Q] Sending a large patch
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
2014-05-14 7:35 ` Dan Carpenter
2014-05-14 10:47 ` Bernd Petrovitsch
@ 2014-05-14 14:07 ` Masaru Nomura
2014-05-14 14:14 ` Dan Carpenter
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Masaru Nomura @ 2014-05-14 14:07 UTC (permalink / raw)
To: kernel-janitors
Thank you for your reply.
>> Now, I'm cleaning up a file and it has over 100 warnings of line over
>> 80 character issues. As the problem seems to be the same, I may
>
> And you are really sure that is more readable afterwards with the
> additional line breaks?
Well, my intention is to follow the coding style[1].
As far as I understand, we follow this for linux-code readability.
(Of course, I think I shouldn't split/break a line in a bad way though.)
Chap 2 says:
The limit on the length of lines is 80 columns and this is a strongly
preferred limit.
Or are there any situations where we ignore over 80 characters?
>> correct the bugs and send one commit. But I think it's a pain for
>> reviewers to check all of them within one patch.
>
> Apart from the questionable usefulness of the above, you should split it
> per subsystem/maintainer so that people do not need to look for "their"
> parts.
I'm working on just one file so I think the relevant maintainers are the
same. (Do I have it correct?)
Or do you mean I should make multiple patches depending on the information
of who takes responsibility of which part within the same file? If
this is the case,
is there a good tool to do this easily?
Thank you,
Masaru
[1] https://www.kernel.org/doc/Documentation/CodingStyle
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Q] Sending a large patch
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
` (2 preceding siblings ...)
2014-05-14 14:07 ` Masaru Nomura
@ 2014-05-14 14:14 ` Dan Carpenter
2014-05-14 14:16 ` Masaru Nomura
2014-05-14 14:28 ` Bernd Petrovitsch
5 siblings, 0 replies; 7+ messages in thread
From: Dan Carpenter @ 2014-05-14 14:14 UTC (permalink / raw)
To: kernel-janitors
Just send the patch and we can discuss it from there.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Q] Sending a large patch
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
` (3 preceding siblings ...)
2014-05-14 14:14 ` Dan Carpenter
@ 2014-05-14 14:16 ` Masaru Nomura
2014-05-14 14:28 ` Bernd Petrovitsch
5 siblings, 0 replies; 7+ messages in thread
From: Masaru Nomura @ 2014-05-14 14:16 UTC (permalink / raw)
To: kernel-janitors
> Just send the patch and we can discuss it from there.
Sure. I'll try to finish it soon.
Thank you,
Masaru
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Q] Sending a large patch
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
` (4 preceding siblings ...)
2014-05-14 14:16 ` Masaru Nomura
@ 2014-05-14 14:28 ` Bernd Petrovitsch
5 siblings, 0 replies; 7+ messages in thread
From: Bernd Petrovitsch @ 2014-05-14 14:28 UTC (permalink / raw)
To: kernel-janitors
On Mit, 2014-05-14 at 15:07 +0100, Masaru Nomura wrote:
> >> Now, I'm cleaning up a file and it has over 100 warnings of line over
> >> 80 character issues. As the problem seems to be the same, I may
> >
> > And you are really sure that is more readable afterwards with the
> > additional line breaks?
>
> Well, my intention is to follow the coding style[1].
Of course.
> As far as I understand, we follow this for linux-code readability.
> (Of course, I think I shouldn't split/break a line in a bad way though.)
>
> Chap 2 says:
> The limit on the length of lines is 80 columns and this is a strongly
> preferred limit.
>
> Or are there any situations where we ignore over 80 characters?
There are maintainers who do not see it that strict.
(Probably) no one has problem if one reorganizes 130 character lines.
But if a line with just some printk() has 81 characters if doesn't help
readability/understandability if it is split just for the sake of the
limit.
Bernd
--
Bernd Petrovitsch Email : bernd@petrovitsch.priv.at
LUGA : http://www.luga.at
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-05-14 14:28 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-14 0:48 [Q] Sending a large patch Masaru Nomura
2014-05-14 7:35 ` Dan Carpenter
2014-05-14 10:47 ` Bernd Petrovitsch
2014-05-14 14:07 ` Masaru Nomura
2014-05-14 14:14 ` Dan Carpenter
2014-05-14 14:16 ` Masaru Nomura
2014-05-14 14:28 ` Bernd Petrovitsch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox