public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: postfail@hushmail.com
Cc: <alan@lxorguk.ukuu.org.uk>, <jesper.juhl@gmail.com>,
	<lists-receive@programmierforen.de>,
	<linux-kernel@vger.kernel.org>, <kernel-janitors@vger.kernel.org>
Subject: Re: Ideas on column length in kernel "problem"?
Date: Fri, 24 Aug 2007 09:51:03 -0700	[thread overview]
Message-ID: <20070824095103.55556e1f.randy.dunlap@oracle.com> (raw)
In-Reply-To: <20070824163149.B7636C381C@mailserver10.hushmail.com>

On Fri, 24 Aug 2007 12:31:43 -0400 Scott Thompson wrote:

> On Fri, 24 Aug 2007 07:07:54 -0400 Jesper Juhl 
> <jesper.juhl@gmail.com> wrote:
> >On 24/08/07, Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> >> > I think this is also a matter of conding style. 
> >Documentation/CodingStyle says:
> >> >
> >> > "The limit on the length of lines is 80 columns and this is a 
> >hard limit."
> >>
> >> As has repeatedly been stated this is a bug in 
> >Documentation/CodingStyle and bears no resemblence to reality.
> >>
> 
> Quite the hornet's nest I've stirred up -- I'm not trying to rock 
> the boat, just trying to row.
> 
> Meanwhile, I ran a couple programs against the 2.6.22.1 source to 
> get some statistics on the source in the linux kernel tree to 
> understand what 'reality' is:
> 
> Number of files -- 23742
> Number of lines > 80 columns:  247057
> Number of lines > 90 columns:  127016
> Number of lines > 100 columns: 21
> 
> The *winner* at 482 columns is a commented out line in
> 
> /linux-2.6.22.1/drivers/pci/hotplug/ibmphp_ebda.c 440 //		debug 
> ("rio_node_id: %x\nbbar: %x\nrio_type: %x\nowner_id: 
> %x\nport0_node: %x\nport0_port: %x\nport1_node: %x\nport1_port: 
> %x\nfirst_slot_num: %x\nstatus: %x\n", rio_detail_ptr->rio_node_id, 
> rio_detail_ptr->bbar, rio_detail_ptr->rio_type, rio_detail_ptr-
> >owner_id, rio_detail_ptr->port0_node_connect, rio_detail_ptr-
> >port0_port_connect, rio_detail_ptr->port1_node_connect, 
> rio_detail_ptr->port1_port_connect, rio_detail_ptr->first_slot_num, 
> rio_detail_ptr->status);
> 
> So I think updating the text in coding style one way or another is 
> a good thing since there are ~248k exceptions to the style rule...

We could update CodingStyle, but it's still just a guideline,
not a strict requirement, so how would that fix anything?

> I can make the bins + scripts I used to gather this and output of 
> this run available if anyone is interested.
> 
> However, this isn't the whole story.. one of the side effects of 
> the patch system through email clients are that the function name 
> in the 'git diff' (or comparable) output can tack on 20-25 columns 
> of header and further cause wordwrap strife and bring more patches 
> into this problem.  It *appears* that many maintainers are pretty 
> good at recognizing this and purging portions of the function names 
> when forwarding them around, but it's still a bigger and common 
> 'problem' for the wordwrapping clients.

diff -p output is preferred for diffs (for review).
I'm not aware of people purging that info.

> Example: 
> @@ -189,6 +189,9 @@ static __devinit int ixp4xx_pata_probe(struct 
> platform_device *pdev)
> 
> Common advice appears to be to get smtp working on gmail, and I 
> thank the list for their suggestions.  If I get one/two ways 
> working that are compliant for patch submittal w/o wordwrap (et al) 
> I'll start a 'howto' from my notes on yahoo and gmail/smtp setup 
> and post that up on the interweb.

Thanks.

---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***

  reply	other threads:[~2007-08-24 16:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-24 16:31 Ideas on column length in kernel "problem"? Scott Thompson
2007-08-24 16:51 ` Randy Dunlap [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-08-24 19:09 Scott Thompson
2007-08-23  3:54 Scott Thompson
2007-08-23  4:05 ` Adrian Bunk
2007-08-24  8:17   ` Suresh Jayaraman
2007-08-23  7:36 ` Paolo Ornati
2007-08-23 11:56   ` walter harms
2007-08-23 12:00     ` Paolo Ornati
2007-08-23 12:27 ` Jesper Juhl
2007-08-24  1:43 ` Bron Gondwana
2007-08-24 10:31 ` Andi Drebes
2007-08-24 10:46   ` Alan Cox
2007-08-24 11:07     ` Jesper Juhl

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=20070824095103.55556e1f.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=jesper.juhl@gmail.com \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lists-receive@programmierforen.de \
    --cc=postfail@hushmail.com \
    /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