mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-07-02 20:30:46 +00:00
checkpatch.pl: Request a test when a new command is added
This request is made with nearly every new command. Point to some docs on how to do it. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
7fc7d24116
commit
58978114d9
2 changed files with 56 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue