aboutsummaryrefslogtreecommitdiff
path: root/tools/scripts
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2014-10-10 08:27:14 +0400
committerSpencer Oliver <spen@spen-soft.co.uk>2014-11-24 22:23:38 +0000
commit4525c0a4c4d0aaa199c37a6d2245617e8445f213 (patch)
treec31d22ba7bd9222f9ff6a444874ec04776fc9649 /tools/scripts
parent9777284ae04ac77434b8478ac566535207a3d7c0 (diff)
checkpatch.pl: check for the FSF mailing address
This check code is imported from Linux v3.17 checkpatch.pl. Change-Id: If39d834ee9b6131bccc92de38fd7c108650bd2f1 Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Reviewed-on: http://openocd.zylin.com/2341 Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk> Tested-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tools/scripts')
-rwxr-xr-xtools/scripts/checkpatch.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/scripts/checkpatch.pl b/tools/scripts/checkpatch.pl
index 9cae83ae..b3a08548 100755
--- a/tools/scripts/checkpatch.pl
+++ b/tools/scripts/checkpatch.pl
@@ -1631,6 +1631,14 @@ sub process {
$rpt_cleaners = 1;
}
+ if ($rawline =~ /\bwrite to the Free/i ||
+ $rawline =~ /\b59\s+Temple\s+Pl/i ||
+ $rawline =~ /\b51\s+Franklin\s+St/i) {
+ my $herevet = "$here\n" . cat_vet($rawline) . "\n";
+ my $msg_type = \&ERROR;
+ 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.\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.