aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2025-04-09 00:27:02 +0800
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-04-08 20:46:10 +0200
commitae81527b431e235b7f81a400b9a6a27b798c40b3 (patch)
tree00c216b51bb512eb1e0f31e1287cf045696c5c04
parent8c996e32712820d6d1e62ba6436424d0ba837d96 (diff)
downloadqemu-ae81527b431e235b7f81a400b9a6a27b798c40b3.zip
qemu-ae81527b431e235b7f81a400b9a6a27b798c40b3.tar.gz
qemu-ae81527b431e235b7f81a400b9a6a27b798c40b3.tar.bz2
scripts/checkpatch: Fix typo in SPDX-License-Identifier keyword
Fix the typo in the error message to help `grep` the example: ERROR: New file '***' requires 'SPDX-License-Identifer' Fixes: fa4d79c64dae ("scripts: mandate that new files have SPDX-License-Identifier") Signed-off-by: Zhao Liu <zhao1.liu@intel.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-ID: <20250408162702.2350565-1-zhao1.liu@intel.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 6ae9d7f..365892d 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1688,11 +1688,11 @@ sub process {
/\.(c|h|py|pl|sh|json|inc|Makefile)$/) {
# source code files MUST have SPDX license declared
ERROR("New file '$expect_spdx_file' requires " .
- "'SPDX-License-Identifer'");
+ "'SPDX-License-Identifier'");
} else {
# Other files MAY have SPDX license if appropriate
WARN("Does new file '$expect_spdx_file' need " .
- "'SPDX-License-Identifer'?");
+ "'SPDX-License-Identifier'?");
}
}
$expect_spdx = 1;