Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760046AbZDHMWA (ORCPT ); Wed, 8 Apr 2009 08:22:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752969AbZDHMVp (ORCPT ); Wed, 8 Apr 2009 08:21:45 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:35806 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbZDHMVo (ORCPT ); Wed, 8 Apr 2009 08:21:44 -0400 Date: Wed, 8 Apr 2009 14:21:21 +0200 From: Ingo Molnar To: Huang Weiyi Cc: mingo@redhat.com, hpa@zytor.com, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/8] x86: remove dupilcated #include Message-ID: <20090408122121.GB18581@elte.hu> References: <1239009605-1796-1-git-send-email-weiyi.huang@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1239009605-1796-1-git-send-email-weiyi.huang@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.2.5 -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1955 Lines: 58 * Huang Weiyi wrote: > Remove dupilcated #include in arch/x86/kernel/dumpstack.c. > > Signed-off-by: Huang Weiyi > --- > arch/x86/kernel/dumpstack.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) > > diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c > index 95ea5fa..6d7966d 100644 > --- a/arch/x86/kernel/dumpstack.c > +++ b/arch/x86/kernel/dumpstack.c > @@ -15,7 +15,6 @@ > #include > #include > #include > -#include > > #include Many of those include lines are probably unnecessary. Instead of these trivial patches causing churn, would you be interested in doing a comprehensive search to eliminate all the unused ones? That would be a real step forward. (and this holds for your other patches in this series too.) The include files section of fault.c might be a good template to use: #include /* STACK_END_MAGIC */ #include /* test_thread_flag(), ... */ #include /* oops_begin/end, ... */ #include /* search_exception_table */ #include /* max_low_pfn */ #include /* __kprobes, ... */ #include /* kmmio_handler, ... */ #include /* perf_swcounter_*(), ... */ #include /* dotraplinkage, ... */ #include /* pgd_*(), ... */ #include /* kmemcheck_*(), ... */ I was able to eliminate half of all include file lines there. See latest -tip for that: http://people.redhat.com/mingo/tip.git/README Thanks, Ingo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/