public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
	"tglx@linutronix.de" <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>
Subject: Re: [PATCH] x86: Coding style fixes for arch/x86/kernel/cpu/centaur.c
Date: Mon, 18 Feb 2008 10:29:45 +0100	[thread overview]
Message-ID: <20080218092944.GA26521@elte.hu> (raw)
In-Reply-To: <4d8e3fd30802180048o39790aedwde2ef1cbb009363e@mail.gmail.com>


* Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com> wrote:

> >  /*
> > - *     Set up an actual MCR
> > + * Set up an actual MCR
> >   */
> 
> This was not highlighted by checkpatch.pl, right? The same applies for 
> a few other "fix" you did on some comments.

correct - it's not fixes, just bringing it in line with the common 
comment style we use. The file was using lots of inconsistent comment 
styles.

> [...]
> >  {
> > -       u32 mem = ramtop();
> >         u32 root = power2(mem);
> > +       u32 mem = ramtop();
> 
> Can you please explain the rationale behind this change?

it's a bug :) It got pointed out by Joe Perches and i fixed it. (the 
size check would have caught it too)

> > -               E2MMX = 1<<19,
> > -               EAMD3D = 1<<20,
> > -       };
> 
> I see why you did the cleanup but I think even this part was not
> catched by checkpatch.pl

yes, as i said:

> > Some of them are real CodingStyle problems, some of them are just 
> > arbitrary taste details.

checkpatch.pl is a helper tool which highlights some of the clear 
problem - but when we clean up files we try to make it appear consistent 
in all its details. My patch was a demonstration of what else can be 
fixed in a file until it's really clean looking in its entirety.

	Ingo

  reply	other threads:[~2008-02-18  9:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080217233023.26764dc9@paolo-desktop>
2008-02-18  2:56 ` [PATCH] x86: Coding style fixes for arch/x86/kernel/cpu/centaur.c Ingo Molnar
2008-02-18  3:12   ` Joe Perches
2008-02-18  4:30     ` Ingo Molnar
2008-02-18  8:48   ` Paolo Ciarrocchi
2008-02-18  9:29     ` Ingo Molnar [this message]
2008-02-18  9:38       ` Paolo Ciarrocchi

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=20080218092944.GA26521@elte.hu \
    --to=mingo@elte.hu \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paolo.ciarrocchi@gmail.com \
    --cc=tglx@linutronix.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