Browse Source

tools: checkpatch.pl from Linux added to tools

Added from Linux - commit 30ecad5184

Include config file to ignore common false-positives

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Wolfgang Denk <wd@denx.de>
tags/2020-06-01
Joe Hershberger 9 years ago
committed by Wolfgang Denk
parent
commit
05622191e5
2 changed files with 3351 additions and 0 deletions
  1. +14
    -0
      .checkpatch.conf
  2. +3337
    -0
      tools/checkpatch.pl

+ 14
- 0
.checkpatch.conf View File

@@ -0,0 +1,14 @@
# Not Linux, so don't expect a Linux tree.
--no-tree

# Temporary for false positive in checkpatch
--ignore COMPLEX_MACRO

# For CONFIG_SYS_I2C_NOPROBES
--ignore MULTISTATEMENT_MACRO_USE_DO_WHILE

# For simple_strtoul
--ignore CONSIDER_KSTRTO

# For min/max
--ignore MINMAX

+ 3337
- 0
tools/checkpatch.pl
File diff suppressed because it is too large
View File


Loading…
Cancel
Save