aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2016-05-20 20:04:11 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-20 20:58:30 -0400
commitef212196369cbc2e694eab39261f9785ec252028 (patch)
tree94b14851ebad432d6874d4f224ac35be07042868
parent481aea5c59a57123b66d5850be1be79f9f230c0e (diff)
checkpatch: advertise the --fix and --fix-inplace options more
The --fix option is relatively unknown and underutilized. Add some text to show that it's available when style defects are found. 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>
-rwxr-xr-xscripts/checkpatch.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 1048672c22ee..f09c3f28b0fe 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -5975,6 +5975,14 @@ sub process {
5975 } 5975 }
5976 5976
5977 if ($quiet == 0) { 5977 if ($quiet == 0) {
5978 # If there were any defects found and not already fixing them
5979 if (!$clean and !$fix) {
5980 print << "EOM"
5981
5982NOTE: For some of the reported defects, checkpatch may be able to
5983 mechanically convert to the typical style using --fix or --fix-inplace.
5984EOM
5985 }
5978 # If there were whitespace errors which cleanpatch can fix 5986 # If there were whitespace errors which cleanpatch can fix
5979 # then suggest that. 5987 # then suggest that.
5980 if ($rpt_cleaners) { 5988 if ($rpt_cleaners) {