lkml.org 
[lkml]   [2013]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCHv2] checkpatch.pl: Check for the FSF mailing address
From
Date
(Adding Andrew Morton)

On Sun, 2013-10-06 at 15:23 -0700, Josh Triplett wrote:
> Kernel maintainers reject new instances of the GPL boilerplate paragraph
> directing people to write to the FSF for a copy of the GPL, since the
> FSF has moved in the past and may do so again.
>
> Make this an error for new code, but just a --strict CHK in --file mode;
> anyone interested in doing tree-wide cleanups of this form can enable
> this test explicitly.
>
> Signed-off-by: Josh Triplett <josh@joshtriplett.org>
> ---
>
> v2: Make this a CHK in --file mode, using a code pattern suggested by
> Joe Perches.
>
> scripts/checkpatch.pl | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
> index 2ee9eb7..9161533 100755
> --- a/scripts/checkpatch.pl
> +++ b/scripts/checkpatch.pl
> @@ -1859,6 +1859,18 @@ sub process {
> $rpt_cleaners = 1;
> }
>
> +# Check for FSF mailing addresses.
> + if ($rawline =~ /You should have received a copy/ ||
> + $rawline =~ /write to the Free Software/ ||
> + $rawline =~ /59 Temple Place/ ||
> + $rawline =~ /51 Franklin Street/) {
> + my $herevet = "$here\n" . cat_vet($rawline) . "\n";
> + my $msg_type = \&ERROR;
> + $msg_type = \&CHK if ($file);
> + &{$msg_type}("FSF_MAILING_ADDRESS",
> + "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.\n" . $herevet)
> + }
> +
> # check for Kconfig help text having a real description
> # Only applies when adding the entry originally, after that we do not have
> # sufficient context to determine whether it is indeed long enough.

Acked-by: Joe Perches <joe@perches.com>




\
 
 \ /
  Last update: 2013-10-07 01:21    [W:0.110 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site