Re: [PATCH v5] checkpatch: check for missing Fixes tags

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 11.06.24 20:38, Andrew Morton wrote:
> On Tue, 11 Jun 2024 16:43:29 +0300 Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:
> 
>> This check looks for common words that probably indicate a patch
>> is a fix.  For now the regex is:
>>
>> 	(?:(?:BUG: K.|UB)SAN: |Call Trace:|stable\@|syzkaller)/)
>>
>> Why are stable patches encouraged to have a fixes tag?  Some people mark
>> their stable patches as "# 5.10" etc.  This is useful but a Fixes tag is
>> still a good idea.
> 
> I'd say that "# 5.10" is lame

Documentation/process/stable-kernel-rules.rst documents this use to
"Point out kernel version prerequisites".

> and it would be good if checkpatch could
> detect this and warn "hey, use a proper Fixes:".  Because
> 
>> It  helps people to not cherry-pick buggy patches without also
>> cherry-picking the fix.
> 
> seems pretty important.

Hmmm. That would lead to false positive when it comes to changes that
for example just add a device ID (and thus do not "Fix" anything) while
having prerequisites that are only available in a specific version.

Ciao, Thorsten




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux