From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dale Farnsworth Subject: Re: [PATCH 02/39] mv643xx_eth: trim unnecessary includes Date: Fri, 6 Jun 2008 03:55:15 -0700 Message-ID: <20080606105515.GB5499@farnsworth.org> References: <1212490974-23719-1-git-send-email-buytenh@wantstofly.org> <1212490974-23719-3-git-send-email-buytenh@wantstofly.org> <20080605110252.GA1059@farnsworth.org> <20080606081839.GB5420@xi.wantstofly.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev@vger.kernel.org To: Lennert Buytenhek Return-path: Received: from xyzzy.farnsworth.org ([65.39.95.219]:39512 "EHLO xyzzy.farnsworth.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365AbYFFKzY (ORCPT ); Fri, 6 Jun 2008 06:55:24 -0400 Content-Disposition: inline In-Reply-To: <20080606081839.GB5420@xi.wantstofly.org> Sender: netdev-owner@vger.kernel.org List-ID: On Fri, Jun 06, 2008 at 10:18:39AM +0200, Lennert Buytenhek wrote: > On Thu, Jun 05, 2008 at 04:02:52AM -0700, Dale Farnsworth wrote: > > > > -#include > > > > Isn't this needed for the definition of struct work and schedule_work()? > > > > > #include > > > - > > > #include > > > > > > -#include > > > -#include > > > -#include > > > -#include > > > -#include > > > > Don't we still need this for udelay()? > > > -#include > > > > And this for dma_map_single, etc. > > > > I didn't bother to check all the other includes being removed, but it > > seems you may have been a bit overly aggressive. > > I just deleted everything that didn't make it stop compile, which I > admit is a bit overzealous. :) > > I've attached a new patch below: > - linux/ip.h only contains struct iphdr/ip_auth_hdr/ip_esp_hdr/ > ip_comp_hdr and various IP options and IP TOS-related things, > none of which we use. > - linux/bitops.h contains various BIT()/BIT_MASK()/etc defines and > find_{first,next}_*bit()/ffs/for_each_bit(), none of which we use. > - asm/pgtable.h contains low-level page table handling functions and > nothing of interest to the driver as far as I can tell. > - asm/delay.h isn't needed since we include linux/delay.h > - ditto for asm/dma-mapping.h > > OK? Sounds good. (I missed that fact taht linux/delay.h and linux/dma-mapping.h were still included.) -Dale > From: Lennert Buytenhek > Date: Sun Jun 1 00:54:05 CEST 2008 > Subject: mv643xx_eth: trim unnecessary includes > > Signed-off-by: Lennert Buytenhek > > Index: linux-2.6.26-rc5/drivers/net/mv643xx_eth.c > =================================================================== > --- linux-2.6.26-rc5.orig/drivers/net/mv643xx_eth.c > +++ linux-2.6.26-rc5/drivers/net/mv643xx_eth.c > @@ -34,33 +34,25 @@ > * along with this program; if not, write to the Free Software > * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. > */ > + > #include > #include > #include > -#include > #include > #include > #include > - > -#include > #include > #include > #include > - > #include > #include > #include > #include > #include > - > #include > - > #include > #include > -#include > #include > -#include > -#include > > static char mv643xx_driver_name[] = "mv643xx_eth"; > static char mv643xx_driver_version[] = "1.0";