Re: [PATCH -tip] x86: trampoline.c cleanup

From: Ingo Molnar
Date: Sun Mar 15 2009 - 00:42:05 EST



* Jaswinder Singh Rajput <jaswinder@xxxxxxxxxx> wrote:

> On Sat, 2009-03-14 at 17:58 +0100, Thomas Gleixner wrote:
> > On Sat, 14 Mar 2009, Jaswinder Singh Rajput wrote:
> > > Hello Thomas,
> > >
> > > On Sat, 2009-03-14 at 17:20 +0100, Thomas Gleixner wrote:
> > > > On Sat, 14 Mar 2009, Jaswinder Singh Rajput wrote:
> > > >
> > > > > Subject: [PATCH] x86: trampoline.c cleanup
> > > > >
> > > > > Impact: cleanup
> > > > >
> > > > > - fix style problems
> > > >
> > > > Err. This patch is a style problem itself.
> > > >
> > > > > Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@xxxxxxxxx>
> > > > > ---
> > > > > arch/x86/kernel/trampoline.c | 3 ++-
> > > > > 1 files changed, 2 insertions(+), 1 deletions(-)
> > > > >
> > > > > diff --git a/arch/x86/kernel/trampoline.c b/arch/x86/kernel/trampoline.c
> > > > > index 808031a..e3b1f2e 100644
> > > > > --- a/arch/x86/kernel/trampoline.c
> > > > > +++ b/arch/x86/kernel/trampoline.c
> > > > > @@ -15,7 +15,7 @@ void __init reserve_trampoline_memory(void)
> > > > > * trampoline before removing it. (see the GDT stuff)
> > > > > */
> > > > > reserve_early(PAGE_SIZE, PAGE_SIZE + PAGE_SIZE, "EX TRAMPOLINE");
> > > > > -#endif
> > > > > +#endif /* CONFIG_X86_32 */
> > > >
> > > > There is no need for this useless comment. The #ifdef is 5 lines
> > > > above. Such comments are only helpful in large nested sections.
> > > >
> > >
> > > Ahh, So
> > >
> > > if (ifdef < 5)
> > > Rule #1
> > > else
> > > Rule #2
> >
> > Sigh. I asked for applying common sense not for creating another
> > stupid rule.
>
> Who made this stupid rule ?

What Thomas is saying is that instead of you trying to create
some sort of rigid rule, you should apply common sense instead.

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/