From: John L. Hammond Date: Tue, 19 May 2015 18:50:50 +0000 (-0500) Subject: LU-6599 build: warn on likely uses of GPLv3 X-Git-Tag: 2.7.55~60 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=97a4f037c2f7f41599fcf582768029d4f99763cb;p=fs%2Flustre-release.git LU-6599 build: warn on likely uses of GPLv3 Add a warning to checkpatch.pl to warn on likely uses of GPLv3 headers. Signed-off-by: John L. Hammond Change-Id: I5fc48c9aa7495d949734db432b6a0b413379e99f Reviewed-on: http://review.whamcloud.com/14863 Tested-by: Jenkins Reviewed-by: Oleg Drokin --- diff --git a/contrib/scripts/checkpatch.pl b/contrib/scripts/checkpatch.pl index fd8b4fd..4936fbe 100755 --- a/contrib/scripts/checkpatch.pl +++ b/contrib/scripts/checkpatch.pl @@ -3451,6 +3451,11 @@ sub process { WARN("EXPORTED_WORLD_WRITABLE", "Exporting world writable files is usually an error. Consider more restrictive permissions.\n" . $herecurr); } + + if ($rawline =~ /version 3/) { + WARN("GPLV3", + "using GPLv3 is usually wrong\n" . $herecurr); + } } # If we have no input at all, then there is nothing to report on