summaryrefslogtreecommitdiff
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/checkpatch.pl')
-rwxr-xr-xscripts/checkpatch.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 2654f9e5f7..cf620c8614 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -2255,6 +2255,12 @@ sub u_boot_line {
WARN("LIVETREE",
"Use the livetree API (dev_read_...)\n" . $herecurr);
}
+
+ # add tests for new commands
+ if ($line =~ /^\+.*do_($Ident)\(struct cmd_tbl.*/) {
+ WARN("CMD_TEST",
+ "Possible new command - make sure you add a test\n" . $herecurr);
+ }
}
sub process {