Patches which both remove and add/modify DT binding files are incorrectly flagged as needing to split the patch. The issue is the check sees "dev/null" as one of the files in the patch which is not a DT binding file. Add "dev/null" to the skipped files.
Showing the changes to scripts/checkpatch.pl (1 of 1 file). Show all
Unified · Split
| @@ -2928,7 +2928,7 @@ sub process { · 2927 unmodified lines | ||
| 2928 | 2928 | } |
| 2929 | 2929 | $checklicenseline = 1; |
| 2930 | 2930 | |
| 2931 | − if ($realfile !~ /^MAINTAINERS/) { | |
| 2931 | + if ($realfile !~ /^(MAINTAINERS|dev\/null)/) { | |
| 2932 | 2932 | my $last_binding_patch = $is_binding_patch; |
| 2933 | 2933 | |
| 2934 | 2934 | $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@; |