From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755668AbZCNSM1 (ORCPT ); Sat, 14 Mar 2009 14:12:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752486AbZCNSMS (ORCPT ); Sat, 14 Mar 2009 14:12:18 -0400 Received: from hera.kernel.org ([140.211.167.34]:57062 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752258AbZCNSMS (ORCPT ); Sat, 14 Mar 2009 14:12:18 -0400 Subject: Re: [PATCH -tip] x86: trampoline.c cleanup From: Jaswinder Singh Rajput To: Thomas Gleixner Cc: Ingo Molnar , x86 maintainers , LKML In-Reply-To: References: <1237045494.4546.22.camel@ht.satnam> <1237048511.4546.34.camel@ht.satnam> Content-Type: text/plain Date: Sat, 14 Mar 2009 23:41:52 +0530 Message-Id: <1237054312.3144.12.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.4 (2.24.4-1.fc10) Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > > --- > > > > 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 ? -- JSR