Browse Source

checkpatch: update from Linux v4.13-rc6

Checkpatch produces the following warning:

Unescaped left brace in regex is deprecated here
(and will be fatal in Perl 5.30), passed through in regex;
marked by <-- HERE in m/^(\+.*(?:do|\))){ <-- HERE /
at scripts/checkpatch.pl line 3348.

The curent checkpatch of the Linux kernel corrects this
bug and many others.

It provides improved colored output.

So replace checkpatch by the current Linux version.

Add an empty file scripts/const_structs.checkpatch.
We can later fill it according to our needs.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
master
Heinrich Schuchardt 3 years ago
committed by Tom Rini
parent
commit
6305db9604
2 changed files with 2224 additions and 422 deletions
  1. +2222
    -422
      scripts/checkpatch.pl
  2. +2
    -0
      scripts/const_structs.checkpatch

+ 2222
- 422
scripts/checkpatch.pl
File diff suppressed because it is too large
View File


+ 2
- 0
scripts/const_structs.checkpatch View File

@@ -0,0 +1,2 @@
# Put structs here that should be constant
__dummy__

Loading…
Cancel
Save