Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1355323 > unrolled thread
| Started by | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| First post | 2016-03-10 20:10 +0100 |
| Last post | 2016-03-10 20:40 +0100 |
| Articles | 6 — 2 participants |
Back to article view | Back to linux.kernel
checkpatch.pl false positive: FSF mailing address Brian Norris <computersforpeace@gmail.com> - 2016-03-10 20:10 +0100
Re: checkpatch.pl false positive: FSF mailing address Joe Perches <joe@perches.com> - 2016-03-10 20:10 +0100
Re: checkpatch.pl false positive: FSF mailing address Brian Norris <computersforpeace@gmail.com> - 2016-03-10 20:20 +0100
Re: checkpatch.pl false positive: FSF mailing address Joe Perches <joe@perches.com> - 2016-03-10 20:30 +0100
Re: checkpatch.pl false positive: FSF mailing address Brian Norris <computersforpeace@gmail.com> - 2016-03-10 20:30 +0100
Re: checkpatch.pl false positive: FSF mailing address Joe Perches <joe@perches.com> - 2016-03-10 20:40 +0100
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Date | 2016-03-10 20:10 +0100 |
| Subject | checkpatch.pl false positive: FSF mailing address |
| Message-ID | <rbe89-2SM-1@gated-at.bofh.it> |
Hi Joe,
I found this false positive amusing:
$ curl http://patchwork.ozlabs.org/patch/577786/mbox/ | scripts/checkpatch.pl -
[...]
ERROR: Do not include the paragraph about writing to the Free Software
Foundation's mailing address from the sample GPL notice. The FSF has
changed addresses in the past, and may do so again. Linux already
includes a copy of the GPL.
#1489: FILE: drivers/mtd/nand/qcom_nandc.c:1335:
+^I^I * write to the free oob area.$
[...]
The patch is:
http://patchwork.ozlabs.org/patch/577786/
[PATCH v8,2/3] mtd: nand: Qualcomm NAND controller driver
and the comment text is:
"For the last codeword, we skip the bbm positions and write to the
free oob area."
which matches on this:
# Check for FSF mailing addresses.
if ($rawline =~ /\bwrite to the Free/i ||
I'm just writing as recommended by the closing text of your tool.
Regards,
Brian
[toc] | [next] | [standalone]
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2016-03-10 20:10 +0100 |
| Message-ID | <rbe8a-2SM-11@gated-at.bofh.it> |
| In reply to | #1355323 |
On Thu, 2016-03-10 at 11:00 -0800, Brian Norris wrote: > Hi Joe, Hi Brian. > I found this false positive amusing: > > $ curl http://patchwork.ozlabs.org/patch/577786/mbox/ | scripts/checkpatch.pl - > [...] > ERROR: Do not include the paragraph about writing to the Free Software > Foundation's mailing address from the sample GPL notice. The FSF has > changed addresses in the past, and may do so again. Linux already > includes a copy of the GPL. > #1489: FILE: drivers/mtd/nand/qcom_nandc.c:1335: > +^I^I * write to the free oob area.$ > [...] > > The patch is: > http://patchwork.ozlabs.org/patch/577786/ > [PATCH v8,2/3] mtd: nand: Qualcomm NAND controller driver > > and the comment text is: > > "For the last codeword, we skip the bbm positions and write to the > free oob area." > > which matches on this: > > # Check for FSF mailing addresses. > if ($rawline =~ /\bwrite to the Free/i || > > I'm just writing as recommended by the closing text of your tool. Thanks. Yeah, it's amusing. It's also likely not something worth bothering with though as the likelihood of fixing it is low and eventually the FSF warning will be minimized or removed as no longer necessary. checkpatch is stupid, false positives will always exist. cheers, Joe
[toc] | [prev] | [next] | [standalone]
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Date | 2016-03-10 20:20 +0100 |
| Message-ID | <rbehP-2Wa-9@gated-at.bofh.it> |
| In reply to | #1355326 |
On Thu, Mar 10, 2016 at 11:08 AM, Joe Perches <joe@perches.com> wrote: > On Thu, 2016-03-10 at 11:00 -0800, Brian Norris wrote: >> Hi Joe, > > Hi Brian. > >> I found this false positive amusing: >> >> $ curl http://patchwork.ozlabs.org/patch/577786/mbox/ | scripts/checkpatch.pl - >> [...] >> ERROR: Do not include the paragraph about writing to the Free Software >> Foundation's mailing address from the sample GPL notice. The FSF has >> changed addresses in the past, and may do so again. Linux already >> includes a copy of the GPL. >> #1489: FILE: drivers/mtd/nand/qcom_nandc.c:1335: >> +^I^I * write to the free oob area.$ >> [...] >> >> The patch is: >> http://patchwork.ozlabs.org/patch/577786/ >> [PATCH v8,2/3] mtd: nand: Qualcomm NAND controller driver >> >> and the comment text is: >> >> "For the last codeword, we skip the bbm positions and write to the >> free oob area." >> >> which matches on this: >> >> # Check for FSF mailing addresses. >> if ($rawline =~ /\bwrite to the Free/i || >> >> I'm just writing as recommended by the closing text of your tool. > > Thanks. > > Yeah, it's amusing. It's also likely not something worth > bothering with though as the likelihood of fixing it is low > and eventually the FSF warning will be minimized or removed > as no longer necessary. An easy improvement: don't use "ignore case" for the regex. > checkpatch is stupid, false positives will always exist. Regards, Brian
[toc] | [prev] | [next] | [standalone]
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2016-03-10 20:30 +0100 |
| Message-ID | <rberv-312-7@gated-at.bofh.it> |
| In reply to | #1355331 |
On Thu, 2016-03-10 at 11:15 -0800, Brian Norris wrote: > On Thu, Mar 10, 2016 at 11:08 AM, Joe Perches <joe@perches.com> wrote: Hey again Brian. > > Yeah, it's amusing. It's also likely not something worth > > bothering with though as the likelihood of fixing it is low > > and eventually the FSF warning will be minimized or removed > > as no longer necessary. > An easy improvement: don't use "ignore case" for the regex. Maybe, but: drivers/pcmcia/bfin_cf_pcmcia.c: * if not, write to the free software foundation, Of course there's only one of those too. Mostly, it's a "I just don't care very much" warning. If you care enough to submit a patch removing the "/i" from the regex, please do and cc Andrew Morton too. > > checkpatch is stupid, false positives will always exist. I'd almost rather have people understand this.
[toc] | [prev] | [next] | [standalone]
| From | Brian Norris <computersforpeace@gmail.com> |
|---|---|
| Date | 2016-03-10 20:30 +0100 |
| Message-ID | <rberw-312-25@gated-at.bofh.it> |
| In reply to | #1355336 |
On Thu, Mar 10, 2016 at 11:25:55AM -0800, Joe Perches wrote:
> On Thu, 2016-03-10 at 11:15 -0800, Brian Norris wrote:
> > On Thu, Mar 10, 2016 at 11:08 AM, Joe Perches <joe@perches.com> wrote:
>
> Hey again Brian.
>
> > > Yeah, it's amusing. It's also likely not something worth
> > > bothering with though as the likelihood of fixing it is low
> > > and eventually the FSF warning will be minimized or removed
> > > as no longer necessary.
> > An easy improvement: don't use "ignore case" for the regex.
>
> Maybe, but:
>
> drivers/pcmcia/bfin_cf_pcmcia.c: * if not, write to the free software foundation,
>
> Of course there's only one of those too.
>
> Mostly, it's a "I just don't care very much" warning.
>
> If you care enough to submit a patch removing the "/i"
> from the regex, please do and cc Andrew Morton too.
Maybe I will.
> > > checkpatch is stupid, false positives will always exist.
>
> I'd almost rather have people understand this.
Then perhaps I'll also patch this note out:
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
Regards,
Brian
[toc] | [prev] | [next] | [standalone]
| From | Joe Perches <joe@perches.com> |
|---|---|
| Date | 2016-03-10 20:40 +0100 |
| Message-ID | <rbeBc-34j-17@gated-at.bofh.it> |
| In reply to | #1355343 |
On Thu, 2016-03-10 at 11:28 -0800, Brian Norris wrote: > On Thu, Mar 10, 2016 at 11:25:55AM -0800, Joe Perches wrote: > > On Thu, 2016-03-10 at 11:15 -0800, Brian Norris wrote: > > > On Thu, Mar 10, 2016 at 11:08 AM, Joe Perches <joe@perches.com> wrote: > > > > checkpatch is stupid, false positives will always exist. > > I'd almost rather have people understand this. > Then perhaps I'll also patch this note out: > > NOTE: If any of the errors are false positives, please report > them to the maintainer, see CHECKPATCH in MAINTAINERS. Maybe add: "but remember, CHECKPATCH is stupid, you're not".
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web