aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-03-03 18:25:08 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2025-03-04 09:30:26 +0800
commit661c2e1ab29cd9c4d268ae3f44712e8d421c0e56 (patch)
tree7c6bd3f9d84df8aa379b4389be61cd910096babc
parent354925d42252f6f36a9e1e4a6b929aaafb2eaf45 (diff)
downloadqemu-661c2e1ab29cd9c4d268ae3f44712e8d421c0e56.zip
qemu-661c2e1ab29cd9c4d268ae3f44712e8d421c0e56.tar.gz
qemu-661c2e1ab29cd9c4d268ae3f44712e8d421c0e56.tar.bz2
scripts/checkpatch: Fix a typo
When running checkpatch.pl on a commit adding a file without SPDX tag we get: Undefined subroutine &main::WARNING called at ./scripts/checkpatch.pl line 1694. The WARNING level is reported by the WARN() method. Fix the typo. Fixes: fa4d79c64da ("scripts: mandate that new files have SPDX-License-Identifier") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20250303172508.93234-1-philmd@linaro.org> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rwxr-xr-xscripts/checkpatch.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 83b59fb..6ae9d7f 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -1691,8 +1691,8 @@ sub process {
"'SPDX-License-Identifer'");
} else {
# Other files MAY have SPDX license if appropriate
- WARNING("Does new file '$expect_spdx_file' need " .
- "'SPDX-License-Identifer'?");
+ WARN("Does new file '$expect_spdx_file' need " .
+ "'SPDX-License-Identifer'?");
}
}
$expect_spdx = 1;