Commit 1d34d4a2c1 for qemu.org
commit 1d34d4a2c1a868cf9de58511811dfbccd26d1bd0
Author: Bernhard Beschow <shentey@gmail.com>
Date: Tue Apr 14 15:50:18 2026 +0200
scripts/checkpatch: Reject another license boilerplate pattern
The pattern us used 56 times in QEMU.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Matyas Bobek <matyas.bobek@gmail.com>
Message-ID: <20260414135018.13585-1-shentey@gmail.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index e1cf2ff23b..d440553a7e 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -368,6 +368,7 @@ our @typeList = (
# Match text found in common license boilerplate comments:
# for new files the SPDX-License-Identifier line is sufficient.
our @LICENSE_BOILERPLATE = (
+ "licensed under the GPL version 2",
"licensed under the terms of the GNU GPL",
"under the terms of the GNU General Public License",
"under the terms of the GNU Lesser General Public",