mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: "Tomasz Kłoczko" <kloczek@rudy.mif.pg.gda.pl>
Cc: Michael Buesch <mb@bu3sch.de>,
	linux-kernel@vger.kernel.org,
	Alexey Dobriyan <adobriyan@gmail.com>
Subject: Lindent cleanup (was Re: [PATCH] drivers: Conversions from kmalloc+memset to k(z|c)alloc.)
Date: Mon, 24 Jul 2006 10:03:27 +0200	[thread overview]
Message-ID: <44C47ECF.5090500@s5r6.in-berlin.de> (raw)
In-Reply-To: <Pine.BSO.4.63.0607240237030.10018@rudy.mif.pg.gda.pl>

Tomasz Kłoczko wrote:
> On Mon, 24 Jul 2006, Tomasz Kłoczko wrote:
> [..]
>> In all other/most of cases (probably ~99%) Lindetd can be used .. but for NOW 
>> GENERALY IT IS NOT NOT USED.
> 
> I'm just look on number changed fles by Lindent. diffstat shows 14593 
> changed files. Number of all *.[ch] files is 16028. So it shows now 
> ~9% all files passes cleanly indentation using Lindent (my above 
> "GENERALY IT IS NOT NOT USED" isn't true :).

You already posted a good step-by-step proposal. I suggest another
slightly different approach:

People who are interested to help out should just go systematically
through subsystems and drivers, run them through Lindent, check and
perhaps beautify the output, and submit the resulting patches in a form
and to the appropriate addresses as usual (i.e. sensibly broken-up
patches, submitted to subsystem mailinglists and maintainers).

Whenever manual corrections after Lindent were necessary and whenever
there will be objections by reviewers to Lindent's results, take this
feedback as input for the two discussions about
 - consensus about preferred style, i.e. refinement of CodingStyle,
 - possible improvements of Lindent.
These discussions should of course take place at LKML instead of
subsystem mailinglists.

> IMO it is sill possible add general rule "allways use Lindent" because 
> indent can be dissabled/enabled aroud code inccorectly formated by add 
> control comments like:
> 
> /* *INDENT-OFF* */
> /* *INDENT-ON* */
> 
> If it will be widely used probably it will allow better identify some 
> indent problems.

IMHO: Write code for cpp, cc, as --- but not for any other
processor-de-jour. All those processors (formatters, checkers etc.) are
fine to *inspect* code for formal or semantic problems. But this should
not lead to thousands more or less obscure processor keywords sprinkled
all over the sources --- bloating them and making them confusing.
-- 
Stefan Richter
-=====-=-==- -=== ==---
http://arcgraph.de/sr/

  reply	other threads:[~2006-07-24  8:06 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-20 19:05 [PATCH] drivers: Conversions from kmalloc+memset to k(z|c)alloc Panagiotis Issaris
2006-07-21  6:50 ` Rolf Eike Beer
2006-07-21  6:58   ` Pekka Enberg
2006-07-21  7:05     ` Jeff Garzik
2006-07-21  9:09       ` Stefan Richter
2006-07-21 10:20         ` Jesper Juhl
2006-07-21 10:35           ` Panagiotis Issaris
2006-07-21 10:38             ` Pekka J Enberg
2006-07-21 10:55               ` Stefan Richter
2006-07-22 17:58                 ` Tomasz Kłoczko
2006-07-22 18:25                   ` Stefan Richter
2006-07-22 18:35                     ` Tomasz Kłoczko
2006-07-22 20:02                       ` Jeff Garzik
2006-07-22 20:55                         ` Tomasz Kłoczko
2006-07-23 11:20                           ` Alexey Dobriyan
2006-07-23 17:55                             ` Tomasz Kłoczko
2006-07-23 18:24                               ` Michael Buesch
2006-07-24  0:10                                 ` Tomasz Kłoczko
2006-07-24  0:49                                   ` Tomasz Kłoczko
2006-07-24  8:03                                     ` Stefan Richter [this message]
2006-07-24  8:52                                       ` Lindent cleanup (was Re: [PATCH] drivers: Conversions from kmalloc+memset to k(z|c)alloc.) Tomasz Kłoczko
2006-07-23 15:16                         ` [PATCH] drivers: Conversions from kmalloc+memset to k(z|c)alloc Stefan Richter
2006-07-23 18:09                           ` Tomasz Kłoczko
2006-07-21 10:53           ` Stefan Richter
2006-07-21 11:09             ` Stefan Richter
2006-07-21 21:16           ` Jeff Garzik
2006-07-21 21:15         ` Jeff Garzik
2006-07-22  6:20           ` Stefan Richter
2006-07-21  9:32       ` [PATCH] drivers: Conversions from kmalloc+memset tok(z|c)alloc Panagiotis Issaris
2006-07-21 10:14         ` Pekka J Enberg
2006-07-21 10:42           ` Panagiotis Issaris
2006-07-21 11:02           ` Stefan Richter
2006-07-21 11:20             ` Pekka J Enberg
2006-07-21 14:08               ` Stefan Richter
2006-07-21 21:17           ` Jeff Garzik
2006-07-21 10:21   ` [PATCH] drivers: Conversions from kmalloc+memset to k(z|c)alloc Daniel K.
2006-07-21 10:30   ` Panagiotis Issaris
2006-07-21 11:12     ` Rolf Eike Beer
2006-07-21 12:35 ` Dmitry Torokhov
2006-07-21 12:39   ` Panagiotis Issaris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44C47ECF.5090500@s5r6.in-berlin.de \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=adobriyan@gmail.com \
    --cc=kloczek@rudy.mif.pg.gda.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mb@bu3sch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome