Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1355326

Re: checkpatch.pl false positive: FSF mailing address

From Joe Perches <joe@perches.com>
Newsgroups linux.kernel
Subject Re: checkpatch.pl false positive: FSF mailing address
Date 2016-03-10 20:10 +0100
Message-ID <rbe8a-2SM-11@gated-at.bofh.it> (permalink)
References <rbe89-2SM-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web