linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] checkpatch/coding-style: Allow 100 column lines
@ 2020-05-30 11:40 Markus Elfring
  0 siblings, 0 replies; 4+ messages in thread
From: Markus Elfring @ 2020-05-30 11:40 UTC (permalink / raw)
  To: Joe Perches, kernel-janitors, linux-fsdevel,
	linux-security-module, netfilter-devel
  Cc: linux-kernel, Al Viro, Casey Schaufler, Christoph Hellwig,
	David Howells, David Laight, Ian Kent, Linus Torvalds

> Change the maximum allowed line length to 100 from 80.
>
> Miscellanea:
>
> o 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
> o Add a bit to coding-style about alignment to open parenthesis

I suggest to convert this patch into a patch series with three update steps.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=86852175b016f0c6873dcbc24b93d12b7b246612#n138> +++ b/Documentation/process/coding-style.rst
> @@ -84,15 +84,22 @@ …
> +… and are
> +are placed …

Please avoid a word duplication here.


> +… to a function open parenthesis.

Wording alternatives:

+is to align descendants to an open parenthesis of a function call.


> +These same rules are …

+The same rules are applied to function headers with a long argument list.


Regards,
Markus

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: clean up kernel_{read,write} & friends v2
  2020-05-28  5:40 ` Christoph Hellwig
@ 2020-05-28 18:51 Linus Torvalds
  2020-05-28  5:40 ` Christoph Hellwig
  0 siblings, 1 reply; 4+ messages in thread
From: Linus Torvalds @ 2020-05-28 18:51 UTC (permalink / raw)
  To: Christoph Hellwig
  Cc: Al Viro, Ian Kent, David Howells, Linux Kernel Mailing List,
	linux-fsdevel, LSM List, NetFilter

On Wed, May 27, 2020 at 10:40 PM Christoph Hellwig <hch@lst.de> wrote:
>
> this series fixes a few issues and cleans up the helpers that read from
> or write to kernel space buffers, and ensures that we don't change the
> address limit if we are using the ->read_iter and ->write_iter methods
> that don't need the changed address limit.

Apart from the "please don't mix irrelevant whitespace changes with
other changes" comment, this looks fine to me.

And a rant related to that change: I'm really inclined to remove the
checkpatch check for 80 columns entirely, but it shouldn't have been
triggering for old lines even now.

Or maybe make it check for something more reasonable, like 100 characters.

I find it ironic and annoying how "checkpatch" warns about that silly
legacy limit, when checkpatch itself then on the very next few lines
has a line that is 124 columns wide

And yes, that 124 character line has a good reason for it. But that's
kind of the point. There are lots of perfectly fine reasons for longer
lines.

I'd much rather check for "no deep indentation" or "no unnecessarily
complex conditionals" or other issues that are more likely to be
_real_ problems.  But do we really have 80x25 terminals any more that
we'd care about?

               Linus

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-30 23:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-30 11:40 [PATCH] checkpatch/coding-style: Allow 100 column lines Markus Elfring
  -- strict thread matches above, loose matches on Subject: below --
2020-05-28 18:51 clean up kernel_{read,write} & friends v2 Linus Torvalds
2020-05-28  5:40 ` Christoph Hellwig
2020-05-28 20:17   ` David Howells
2020-05-28 21:20     ` Casey Schaufler
2020-05-29 13:08       ` David Laight
2020-05-29 19:19         ` Linus Torvalds
2020-05-29 23:12           ` [PATCH] checkpatch/coding-style: Allow 100 column lines Joe Perches
2020-05-30 22:14             ` Andreas Dilger
2020-05-30 23:15               ` Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).