Re: Fixing warnings

2017-06-02 Thread srishti sharma
Thank you so much for the advice :)

Regards,
Srishti

On Sat, Jun 3, 2017 at 3:26 AM,   wrote:
> On Sat, 03 Jun 2017 02:59:56 +0530, srishti sharma said:
>> Thanks a lot !
>
> Also, large parts of the kernel have maintainers who do *not* want to
> see checkpatch fixes, because there's 2 basic possibilities:
>
> 1) The code is being actively worked on by others as well, in which case
> your patches can cause merge conflicts for no real benefit.
>
> 2) The code isn't being worked on, which means your patches (if incorrect)
> may cause code instability for no real benefit.
>
> End result is that most of the kernel only wants style fixups as part of
> a series of actual code patches - if you're fixing bugs or redoing an
> algorithm, then send style patches as part of the series.
>
> The rules are different for anything under drivers/staging - all code in there
> is assumed to be manure that needs fixing, so feel free to fix it. :)
>

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Fixing warnings

2017-06-02 Thread srishti sharma
Thanks a lot !

Regards
Srishti

On Sat, Jun 3, 2017 at 2:57 AM,   wrote:
> On Sat, 03 Jun 2017 02:47:55 +0530, srishti sharma said:
>> Can we fix two warnings in a single patch ?
>
> Depends what the two warnings are.  If they're two actual kernel warning
> messages, probably best off doing 2 patches.
>
> If it's 2 complaints from checkpatch, it depends.  If they're two or more
> instances of the same style issue (for instance, "blank needed here"), do
> them all in the same patch.  If it's two different style warnings (say,
> missing blanks in one place, and too-long lines in another), that's 2 patches.
>

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Fixing warnings

2017-06-02 Thread valdis . kletnieks
On Sat, 03 Jun 2017 02:47:55 +0530, srishti sharma said:
> Can we fix two warnings in a single patch ?

Depends what the two warnings are.  If they're two actual kernel warning
messages, probably best off doing 2 patches.

If it's 2 complaints from checkpatch, it depends.  If they're two or more
instances of the same style issue (for instance, "blank needed here"), do
them all in the same patch.  If it's two different style warnings (say,
missing blanks in one place, and too-long lines in another), that's 2 patches.



pgpkMo8rUYuzk.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Fixing warnings

2017-06-02 Thread srishti sharma
Hey,

Can we fix two warnings in a single patch ?


Regards,
Srishti

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies