From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758760AbZBBShk (ORCPT ); Mon, 2 Feb 2009 13:37:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757368AbZBBShC (ORCPT ); Mon, 2 Feb 2009 13:37:02 -0500 Received: from fg-out-1718.google.com ([72.14.220.154]:29413 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756084AbZBBSg5 (ORCPT ); Mon, 2 Feb 2009 13:36:57 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-disposition:message-id:content-type :content-transfer-encoding; b=i/Ncj+GvrPYfitq0odVOIAgB4NohrKgV9ucG9DcerZVu9MhFa5KDTL+1xb64Xnte46 6eKPaZfZPfi1LFSzCy87EmthfbQqRtiYLN4CJ1LuYws4fMgK/+mt4h7zi+GuuShPcuXU aasuElhAM0rkxzN98nJRpjgKx7tbDMB9XE82s= From: Bartlomiej Zolnierkiewicz To: Geert Uytterhoeven Subject: Re: [PATCH 01/15] ide: include only when needed Date: Mon, 2 Feb 2009 19:27:25 +0100 User-Agent: KMail/1.10.4 (Linux/2.6.29-rc2-next-20090126; KDE/4.1.4; i686; ; ) Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Whitcroft References: <20090201174909.19144.67767.sendpatchset@localhost.localdomain> <20090201174916.19144.11318.sendpatchset@localhost.localdomain> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200902021927.25177.bzolnier@gmail.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 02 February 2009, Geert Uytterhoeven wrote: > On Sun, 1 Feb 2009, Bartlomiej Zolnierkiewicz wrote: > > From: Bartlomiej Zolnierkiewicz > > Subject: [PATCH] ide: include only when needed > > > > Signed-off-by: Bartlomiej Zolnierkiewicz > > --- > > drivers/ide/ide-io-std.c | 7 +++++++ > > drivers/ide/tx4938ide.c | 2 ++ > > drivers/ide/tx4939ide.c | 2 ++ > > include/linux/ide.h | 7 ------- > > 4 files changed, 11 insertions(+), 7 deletions(-) > > > > Index: b/drivers/ide/ide-io-std.c > > =================================================================== > > --- a/drivers/ide/ide-io-std.c > > +++ b/drivers/ide/ide-io-std.c > > @@ -2,6 +2,13 @@ > > #include > > #include > > > > +#if defined(CONFIG_ARM) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) || \ > > + defined(CONFIG_PARISC) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) > > +#include > > +#else > > +#include > > +#endif > > + > > /* > > * Conventional PIO operations for ATA devices > > */ > > Index: b/drivers/ide/tx4938ide.c > > =================================================================== > > --- a/drivers/ide/tx4938ide.c > > +++ b/drivers/ide/tx4938ide.c > > @@ -15,6 +15,8 @@ > > #include > > #include > > #include > > + > > +#include > > Did you try checkpatch.pl? Sure. This driver uses stuff from . [ I guess I could put '-mips' there to silence warnings on tx493{8,9}.c, however I don't know of the way to get rid of ide-io-std.c's one... ] > [...] > > > Index: b/include/linux/ide.h > > =================================================================== > > --- a/include/linux/ide.h > > +++ b/include/linux/ide.h > > @@ -193,13 +193,6 @@ static inline void ide_std_init_ports(hw > > hw->io_ports.ctl_addr = ctl_addr; > > } > > > > -#if defined(CONFIG_ARM) || defined(CONFIG_M68K) || defined(CONFIG_MIPS) || \ > > - defined(CONFIG_PARISC) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) > > -#include > > -#else > > -#include > > -#endif > > - > > #define MAX_HWIFS 10 > > > > /* > > As checkpatch.pl complains about any include of asm/*.h where the corresponding > linux/*.h exists, this `fix' is incompatible with it. checkpatch.pl gives false positives when it comes to some asm/*.h usages This fix is such example -- it makes pulled in only when really needed (ide-io-std.c and tx493{8,9}.c) instead of being pulled in indirectly by every file including . [ Long-term we want removed but this is not possible yet so I'm trying to limit its scope in the meantime... ] Thanks, Bart