]> git.baikalelectronics.ru Git - kernel.git/commit
checkpatch/coding-style: deprecate 80-column warning
authorJoe Perches <joe@perches.com>
Fri, 29 May 2020 23:12:21 +0000 (16:12 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 31 May 2020 18:00:42 +0000 (11:00 -0700)
commitf473599af1b85f313efbc9b55eb2415cc84d6546
treeddaa48216d11fbe52101b2eb9292f037afbb4db7
parentbdc068ae376233ae3b694a67420265c62e0f5d33
checkpatch/coding-style: deprecate 80-column warning

Yes, staying withing 80 columns is certainly still _preferred_.  But
it's not the hard limit that the checkpatch warnings imply, and other
concerns can most certainly dominate.

Increase the default limit to 100 characters.  Not because 100
characters is some hard limit either, but that's certainly a "what are
you doing" kind of value and less likely to be about the occasional
slightly longer lines.

Miscellanea:

 - to avoid unnecessary whitespace changes in files, checkpatch will no
   longer emit a warning about line length when scanning files unless
   --strict is also used

 - Add a bit to coding-style about alignment to open parenthesis

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/process/coding-style.rst
scripts/checkpatch.pl