mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 17:23:55 +08:00
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>
This commit is contained in:
parent
481aea5c59
commit
ef21219636
@ -5975,6 +5975,14 @@ sub process {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($quiet == 0) {
|
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
|
# If there were whitespace errors which cleanpatch can fix
|
||||||
# then suggest that.
|
# then suggest that.
|
||||||
if ($rpt_cleaners) {
|
if ($rpt_cleaners) {
|
||||||
|
Loading…
Reference in New Issue
Block a user