kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Patch Series
@ 2016-02-16 13:38 Roger H Newell
  2016-02-16 13:52 ` Geyslan G. Bem
  0 siblings, 1 reply; 4+ messages in thread
From: Roger H Newell @ 2016-02-16 13:38 UTC (permalink / raw)
  To: kernelnewbies

Hi all:

I have a question about creating a patch series. I'm working in
drivers/staging/wilc1000 fixing code style. If for example 2 errors are
reported by checkpatch.pl error A and error B, it seems logical that I
could fix all occurrences of error A as one patch and all occurrences of
error B in a second patch.

My question is, is it OK to fix all occurrences of error A across the files
inside drivers/staging/wilc1000 as one patch and all occurrences of error B
across all files inside drivers/staging/wilc1000 as a second patch?

The alternative would be to create a patch that fixes all errors of A and a
patch that fixes all errors of B per file ? In some cases there are so many
occurrences of a particular error across files it probably does make more
sense to create the patches per file.

Any thoughts or clarifications on this ?

Cheers:
Roger H. Newell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160216/b7fc84fc/attachment.html 

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

* Patch Series
  2016-02-16 13:38 Patch Series Roger H Newell
@ 2016-02-16 13:52 ` Geyslan G. Bem
  2016-02-17  5:00   ` YU Bo
  0 siblings, 1 reply; 4+ messages in thread
From: Geyslan G. Bem @ 2016-02-16 13:52 UTC (permalink / raw)
  To: kernelnewbies

Hello,

2016-02-16 10:38 GMT-03:00 Roger H Newell <newell.roger@gmail.com>:
> Hi all:
>
> I have a question about creating a patch series. I'm working in
> drivers/staging/wilc1000 fixing code style. If for example 2 errors are
> reported by checkpatch.pl error A and error B, it seems logical that I could
> fix all occurrences of error A as one patch and all occurrences of error B
> in a second patch.
>
> My question is, is it OK to fix all occurrences of error A across the files
> inside drivers/staging/wilc1000 as one patch and all occurrences of error B
> across all files inside drivers/staging/wilc1000 as a second patch?

I think it is. But you must rely on the maintainer's choice. Ask
him/her before sending.

>
> The alternative would be to create a patch that fixes all errors of A and a
> patch that fixes all errors of B per file ? In some cases there are so many
> occurrences of a particular error across files it probably does make more
> sense to create the patches per file.
>
> Any thoughts or clarifications on this ?

Ditto. But each case must be evaluated. Some changes (error A and B)
can be done in one line, so you have to analyze them.
A real case would be nice for a better exemplification.
>
> Cheers:
> Roger H. Newell
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Regards,

Geyslan G. Bem
hackingbits.com

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

* Patch Series
  2016-02-16 13:52 ` Geyslan G. Bem
@ 2016-02-17  5:00   ` YU Bo
  2016-02-17  6:16     ` Valdis.Kletnieks at vt.edu
  0 siblings, 1 reply; 4+ messages in thread
From: YU Bo @ 2016-02-17  5:00 UTC (permalink / raw)
  To: kernelnewbies







--
Best Regards




At 2016-02-16 21:52:35, "Geyslan G. Bem" <geyslan@gmail.com> wrote:
>Hello,
>
>2016-02-16 10:38 GMT-03:00 Roger H Newell <newell.roger@gmail.com>:
>> Hi all:
>>
>> I have a question about creating a patch series. I'm working in
>> drivers/staging/wilc1000 fixing code style. If for example 2 errors are
>> reported by checkpatch.pl error A and error B, it seems logical that I could
>> fix all occurrences of error A as one patch and all occurrences of error B
>> in a second patch.
>>
>> My question is, is it OK to fix all occurrences of error A across the files
>> inside drivers/staging/wilc1000 as one patch and all occurrences of error B
>> across all files inside drivers/staging/wilc1000 as a second patch?
>
>I think it is. But you must rely on the maintainer's choice. Ask

>him/her before sending.
Greg said that per patch resolve per issue.Maybe i am wrong..:)
>
>>
>> The alternative would be to create a patch that fixes all errors of A and a
>> patch that fixes all errors of B per file ? In some cases there are so many
>> occurrences of a particular error across files it probably does make more
>> sense to create the patches per file.
>>
>> Any thoughts or clarifications on this ?
>
>Ditto. But each case must be evaluated. Some changes (error A and B)
>can be done in one line, so you have to analyze them.
>A real case would be nice for a better exemplification.
>>
>> Cheers:
>> Roger H. Newell
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
>-- 
>Regards,
>
>Geyslan G. Bem
>hackingbits.com
>
>_______________________________________________
>Kernelnewbies mailing list
>Kernelnewbies at kernelnewbies.org
>http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160217/2968b286/attachment.html 

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

* Patch Series
  2016-02-17  5:00   ` YU Bo
@ 2016-02-17  6:16     ` Valdis.Kletnieks at vt.edu
  0 siblings, 0 replies; 4+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2016-02-17  6:16 UTC (permalink / raw)
  To: kernelnewbies


>>> My question is, is it OK to fix all occurrences of error A across the files
>> inside drivers/staging/wilc1000 as one patch and all occurrences of error B
>> across all files inside drivers/staging/wilc1000 as a second patch?

Most maintainers would be perfectly OK with that.  And I'm pretty sure
that Greg KH (maintainer of drivers/staging) would accept that sort of
patch series.  If he isn't, I'm sure he'll correct me. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160217/5a10b0f8/attachment.bin 

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

end of thread, other threads:[~2016-02-17  6:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 13:38 Patch Series Roger H Newell
2016-02-16 13:52 ` Geyslan G. Bem
2016-02-17  5:00   ` YU Bo
2016-02-17  6:16     ` Valdis.Kletnieks at vt.edu

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).