On Thu, Jun 05, 2008 at 04:02:52AM -0700, Dale Farnsworth wrote: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? From: Lennert Buytenhek <buytenh@wantstofly.org> Date: Sun Jun 1 00:54:05 CEST 2008 Subject: mv643xx_eth: trim unnecessary includes Signed-off-by: Lennert Buytenhek <buytenh@marvell.com> 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 <linux/init.h> #include <linux/dma-mapping.h> #include <linux/in.h> -#include <linux/ip.h> #include <linux/tcp.h> #include <linux/udp.h> #include <linux/etherdevice.h> - -#include <linux/bitops.h> #include <linux/delay.h> #include <linux/ethtool.h> #include <linux/platform_device.h> - #include <linux/module.h> #include <linux/kernel.h> #include <linux/spinlock.h> #include <linux/workqueue.h> #include <linux/mii.h> - #include <linux/mv643xx_eth.h> - #include <asm/io.h> #include <asm/types.h> -#include <asm/pgtable.h> #include <asm/system.h> -#include <asm/delay.h> -#include <asm/dma-mapping.h> static char mv643xx_driver_name[] = "mv643xx_eth"; static char mv643xx_driver_version[] = "1.0"; -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Ingo Molnar | Re: x86: 4kstacks default |
| Stephen Rothwell | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| Trent Piepho | [PATCH] [POWERPC] Improve (in|out)_beXX() asm code |
| Rafael J. Wysocki | [Bug #10919] [regression] display dimming is slow and laggy - Acer Travelmate 661lci |
git: | |
| Linus Torvalds | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
