From 661c2e1ab29cd9c4d268ae3f44712e8d421c0e56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Philippe=20Mathieu-Daud=C3=A9?= Date: Mon, 3 Mar 2025 18:25:08 +0100 Subject: [PATCH] scripts/checkpatch: Fix a typo MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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é Reviewed-by: Markus Armbruster Message-ID: <20250303172508.93234-1-philmd@linaro.org> Signed-off-by: Stefan Hajnoczi --- scripts/checkpatch.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 83b59fb443..6ae9d7febe 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; -- 2.30.2