]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch: create an EXPERIMENTAL --fix option to correct patches
authorJoe Perches <joe@perches.com>
Wed, 3 Jul 2013 22:05:31 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:45 +0000 (16:07 -0700)
commit1fba3ac200f17fcdd3510d20907487625855bbc3
tree3f5f6e5a5a749c88418e114a34ee85b9c99fad28
parent13222e88491448163ca9a21b75054efc0b3c6e0e
checkpatch: create an EXPERIMENTAL --fix option to correct patches

Some patches have simple defects in whitespace and formatting that
checkpatch could correct automatically.  Attempt to do so.

Add a --fix option to create a "<inputfile>.EXPERIMENTAL-checkpatch-fixes"
file that tries to use normal kernel style for some of these formatting
errors.

Add warnings against using this file without verifying the changes.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/checkpatch.pl