Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753403AbcCJTPg (ORCPT ); Thu, 10 Mar 2016 14:15:36 -0500 Received: from mail-yw0-f179.google.com ([209.85.161.179]:35259 "EHLO mail-yw0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752543AbcCJTPY (ORCPT ); Thu, 10 Mar 2016 14:15:24 -0500 MIME-Version: 1.0 In-Reply-To: <1457636880.3433.12.camel@perches.com> References: <20160310190023.GB2545@google.com> <1457636880.3433.12.camel@perches.com> Date: Thu, 10 Mar 2016 11:15:23 -0800 Message-ID: Subject: Re: checkpatch.pl false positive: FSF mailing address From: Brian Norris To: Joe Perches Cc: "linux-mtd@lists.infradead.org" , Linux Kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1458 Lines: 47 On Thu, Mar 10, 2016 at 11:08 AM, Joe Perches 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