All of lore.kernel.org
 help / color / mirror / Atom feed
From: davidsen@tmr.com (bill davidsen)
To: linux-kernel@vger.kernel.org
Subject: Re: [patch] reproducible athlon mce fix
Date: 10 Nov 2003 23:55:10 GMT	[thread overview]
Message-ID: <bop8gu$7uk$1@gatekeeper.tmr.com> (raw)
In-Reply-To: 20031102072519.GD530@alpha.home.local

In article <20031102072519.GD530@alpha.home.local>,
Willy Tarreau  <willy@w.ods.org> wrote:

| I don't know if the patch is correct, but :
| 
| On Sun, Nov 02, 2003 at 01:57:48PM +0800, Geoffrey Lee wrote:
| >  	preempt_disable(); 
| > +#if CONFIG_MK7
| > +	for (i=1; i<nr_mce_banks; i++) {
| > +#else
| >  	for (i=0; i<nr_mce_banks; i++) {
| > +#endif
| 
| Including opening braces within #if often fools editors such as emacs
| which count them and don't know about #if. Then, editing the rest of
| the file can become annoying because it simply thinks that there are
| two embedded for loops.

Wouldn't it be easier to just move the brace out of the ifdef and put it
on a line by itself? Readable, doesn't confuse, etc?

  	preempt_disable(); 
 +#if CONFIG_MK7
 +	for (i=1; i<nr_mce_banks; i++) {
 +#else
 - 	for (i=0; i<nr_mce_banks; i++) {
 + 	for (i=0; i<nr_mce_banks; i++)
 +#endif
        {

or similar. Otherwise I guess the solution defining a starting value
would be "less unreadable."


-- 
bill davidsen <davidsen@tmr.com>
  CTO, TMR Associates, Inc
Doing interesting things with little computers since 1979.

  parent reply	other threads:[~2003-11-11  0:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-02  5:57 [patch] reproducible athlon mce fix Geoffrey Lee
2003-11-02  7:25 ` Willy Tarreau
2003-11-02  7:28   ` Geoffrey Lee
2003-11-02  8:59   ` Zwane Mwaikambo
2003-11-10 23:55   ` bill davidsen [this message]
2003-11-02 12:52 ` Dave Jones
2003-11-02 13:52   ` Geoffrey Lee
2003-11-03  9:20   ` Geoffrey Lee
2003-11-03 13:24     ` Dave Jones
2003-11-02 18:25 ` Kronos
2003-11-02 23:44   ` Geoffrey Lee

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='bop8gu$7uk$1@gatekeeper.tmr.com' \
    --to=davidsen@tmr.com \
    --cc=linux-kernel@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.