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)
commit3705ce5bcc1037b68e9d20f90ab50bc7f64edd00
tree3f5f6e5a5a749c88418e114a34ee85b9c99fad28
parent23f780c90496eb1cc158e862e7035c8468dfa052
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