* Fixing warnings
@ 2017-06-02 21:17 srishti sharma
2017-06-02 21:27 ` valdis.kletnieks at vt.edu
0 siblings, 1 reply; 5+ messages in thread
From: srishti sharma @ 2017-06-02 21:17 UTC (permalink / raw)
To: kernelnewbies
Hey,
Can we fix two warnings in a single patch ?
Regards,
Srishti
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fixing warnings
2017-06-02 21:17 Fixing warnings srishti sharma
@ 2017-06-02 21:27 ` valdis.kletnieks at vt.edu
2017-06-02 21:29 ` srishti sharma
0 siblings, 1 reply; 5+ messages in thread
From: valdis.kletnieks at vt.edu @ 2017-06-02 21:27 UTC (permalink / raw)
To: kernelnewbies
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170602/eff6d754/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fixing warnings
2017-06-02 21:27 ` valdis.kletnieks at vt.edu
@ 2017-06-02 21:29 ` srishti sharma
2017-06-02 21:56 ` valdis.kletnieks at vt.edu
0 siblings, 1 reply; 5+ messages in thread
From: srishti sharma @ 2017-06-02 21:29 UTC (permalink / raw)
To: kernelnewbies
Thanks a lot !
Regards
Srishti
On Sat, Jun 3, 2017 at 2:57 AM, <valdis.kletnieks@vt.edu> 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.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fixing warnings
2017-06-02 21:29 ` srishti sharma
@ 2017-06-02 21:56 ` valdis.kletnieks at vt.edu
2017-06-02 22:00 ` srishti sharma
0 siblings, 1 reply; 5+ messages in thread
From: valdis.kletnieks at vt.edu @ 2017-06-02 21:56 UTC (permalink / raw)
To: kernelnewbies
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. :)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 486 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170602/fd366067/attachment.bin
^ permalink raw reply [flat|nested] 5+ messages in thread
* Fixing warnings
2017-06-02 21:56 ` valdis.kletnieks at vt.edu
@ 2017-06-02 22:00 ` srishti sharma
0 siblings, 0 replies; 5+ messages in thread
From: srishti sharma @ 2017-06-02 22:00 UTC (permalink / raw)
To: kernelnewbies
Thank you so much for the advice :)
Regards,
Srishti
On Sat, Jun 3, 2017 at 3:26 AM, <valdis.kletnieks@vt.edu> 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. :)
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-02 22:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-02 21:17 Fixing warnings srishti sharma
2017-06-02 21:27 ` valdis.kletnieks at vt.edu
2017-06-02 21:29 ` srishti sharma
2017-06-02 21:56 ` valdis.kletnieks at vt.edu
2017-06-02 22:00 ` srishti sharma
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).