]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
checkpatch: Fix false DT_SPLIT_BINDING_PATCH warnings
authorRob Herring (Arm) <robh@kernel.org>
Wed, 21 Jan 2026 21:27:14 +0000 (15:27 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Mon, 23 Feb 2026 17:34:20 +0000 (11:34 -0600)
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.

Link: https://patch.msgid.link/20260121212715.144495-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
scripts/checkpatch.pl

index e56374662ff7973abb2ecf01733ae8c32deccf18..bec7930cdd66c0b1f5ca00830376ebcf797c4bd3 100755 (executable)
@@ -2928,7 +2928,7 @@ sub process {
                        }
                        $checklicenseline = 1;
 
-                       if ($realfile !~ /^MAINTAINERS/) {
+                       if ($realfile !~ /^(MAINTAINERS|dev\/null)/) {
                                my $last_binding_patch = $is_binding_patch;
 
                                $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@;