mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
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 <clg@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
f48f16ec3d
commit
45abbf209f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue