Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef212196 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

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: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 481aea5c
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -5975,6 +5975,14 @@ sub process {
	}

	if ($quiet == 0) {
		# If there were any defects found and not already fixing them
		if (!$clean and !$fix) {
			print << "EOM"

NOTE: For some of the reported defects, checkpatch may be able to
      mechanically convert to the typical style using --fix or --fix-inplace.
EOM
		}
		# If there were whitespace errors which cleanpatch can fix
		# then suggest that.
		if ($rpt_cleaners) {