checkpatch: fix check for the FSF address

Commit 4525c0a4c4 cherry-picked check
for the FSF address presence from upstream. However, it has a typo
resulting in this obscure error when triggered:

Use of uninitialized value in concatenation (.) or string at /home/jenkins/.jenkins/jobs/openocd-gerrit/workspace/tools/scripts/checkpatch.pl line 1258.
ERROR:

This patch fixes it.

Change-Id: Ia417ef4782d21c8b3f1d39de88c4ab850a5a6630
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2414
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
__archive__
Paul Fertser 2014-11-27 10:54:07 +03:00 committed by Andreas Fritiofson
parent 1e23496f6e
commit a9a5c17cf5
1 changed files with 4 additions and 2 deletions

View File

@ -1635,8 +1635,10 @@ sub process {
$rawline =~ /\b59\s+Temple\s+Pl/i || $rawline =~ /\b59\s+Temple\s+Pl/i ||
$rawline =~ /\b51\s+Franklin\s+St/i) { $rawline =~ /\b51\s+Franklin\s+St/i) {
my $herevet = "$here\n" . cat_vet($rawline) . "\n"; my $herevet = "$here\n" . cat_vet($rawline) . "\n";
my $msg_type = \&ERROR; ERROR("FSF_MAILING_ADDRESS",
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) "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. " .
"OpenOCD already includes a copy of the GPL.\n" . $herevet)
} }
# check for Kconfig help text having a real description # check for Kconfig help text having a real description