From 97a4f037c2f7f41599fcf582768029d4f99763cb Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Tue, 19 May 2015 13:50:50 -0500 Subject: [PATCH 1/1] 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 --- contrib/scripts/checkpatch.pl | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 1.8.3.1