Messages in this thread Patch in this message | | | From | Derek Chickles <> | Subject | [PATCH] checkpatch: Fix MAINTAINERS search pattern | Date | Thu, 18 Dec 2014 12:12:13 -0800 |
| |
This fixes the check that was supposed to prevent the MAINTAINERS warning from appearing when you run checkpatch.pl on a patch that includes new files/directories and an updated MAINTAINERS file.
Signed-off-by: Derek Chickles <derek.chickles@caviumnetworks.com> --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f0bb6d6..6f10ebb 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -2085,7 +2085,7 @@ sub process { # Check if MAINTAINERS is being updated. If so, there's probably no need to # emit the "does MAINTAINERS need updating?" message on file add/move/delete - if ($line =~ /^\s*MAINTAINERS\s*\|/) { + if ($realfile =~ /MAINTAINERS/) { $reported_maintainer_file = 1; } -- 1.8.3.1
| |