aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/checkpatch.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 5971b0c11616..5219280bf7ff 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2251,6 +2251,7 @@ sub process {
2251 my $author = ''; 2251 my $author = '';
2252 my $authorsignoff = 0; 2252 my $authorsignoff = 0;
2253 my $is_patch = 0; 2253 my $is_patch = 0;
2254 my $is_binding_patch = -1;
2254 my $in_header_lines = $file ? 0 : 1; 2255 my $in_header_lines = $file ? 0 : 1;
2255 my $in_commit_log = 0; #Scanning lines before patch 2256 my $in_commit_log = 0; #Scanning lines before patch
2256 my $has_commit_log = 0; #Encountered lines before patch 2257 my $has_commit_log = 0; #Encountered lines before patch
@@ -2501,6 +2502,19 @@ sub process {
2501 $check = $check_orig; 2502 $check = $check_orig;
2502 } 2503 }
2503 $checklicenseline = 1; 2504 $checklicenseline = 1;
2505
2506 if ($realfile !~ /^MAINTAINERS/) {
2507 my $last_binding_patch = $is_binding_patch;
2508
2509 $is_binding_patch = () = $realfile =~ m@^(?:Documentation/devicetree/|include/dt-bindings/)@;
2510
2511 if (($last_binding_patch != -1) &&
2512 ($last_binding_patch ^ $is_binding_patch)) {
2513 WARN("DT_SPLIT_BINDING_PATCH",
2514 "DT binding docs and includes should be a separate patch. See: Documentation/devicetree/bindings/submitting-patches.txt\n");
2515 }
2516 }
2517
2504 next; 2518 next;
2505 } 2519 }
2506 2520