History

checkpatch: Fix false DT_SPLIT_BINDING_PATCH warnings

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.

Rob Herring (Arm) committed 9 months ago

Commit a45ff9d1 parent 6de23f81 file · +1 −1Browse files

Unified · Split

scripts/checkpatch.pl+1−1
@@ -2928,7 +2928,7 @@ sub process { · 2927 unmodified lines
2928 }2928 }
2929 $checklicenseline = 1;2929 $checklicenseline = 1;
2930 2930
2931 if ($realfile !~ /^MAINTAINERS/) {2931 if ($realfile !~ /^(MAINTAINERS|dev\/null)/) {
2932 my $last_binding_patch = $is_binding_patch;2932 my $last_binding_patch = $is_binding_patch;
2933 2933
2934 $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@;2934 $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t