From: Daniel P. Berrangé Date: Thu, 15 May 2025 12:57:45 +0000 (+0100) Subject: scripts/checkpatch: expand pattern for matching makefiles X-Git-Tag: v10.1.0-rc0~79^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45abbf209f007db90d0a596139f653783cd1cb0f;p=thirdparty%2Fqemu.git scripts/checkpatch: expand pattern for matching makefiles The current regex matches Makefile & Makefile.objs, but the latter is no longer used, anjd we're missing coverage of Makefile.include and Makefile.target. Expand the pattern to match any suffix. Reviewed-by: Cédric Le Goater Reviewed-by: Peter Maydell Signed-off-by: Daniel P. Berrangé --- diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 881dcac29bd..82ec71e05d9 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1454,7 +1454,7 @@ sub process_start_of_file { my $permhere = $fileinfo->{linestart} . "FILE: " . $fileinfo->{filenew} . "\n"; if ($fileinfo->{filenew} =~ - /(\bMakefile(?:\.objs)?|\.(c|cc|cpp|h|mak|s|S))$/) { + /(\bMakefile.*|\.(c|cc|cpp|h|mak|s|S))$/) { ERROR("do not set execute permissions for source " . "files\n" . $permhere); }