[Top] [All Lists]

[patch] net/core/pktgen.c shouldn't include pci.h

To: Robert Olsson <robert.olsson@xxxxxxxxx>
Subject: [patch] net/core/pktgen.c shouldn't include pci.h
From: Adrian Bunk <bunk@xxxxxxxxx>
Date: Sat, 13 Nov 2004 15:53:51 +0100
Cc: davem@xxxxxxxxxxxxx, netdev@xxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6+20040907i
If rebuilding after touching pci.h in 2.6, net/core/pktgen.c is the only 
file under net/ that gets rebuilt.

I searched and didn't find any reason why net/core/pktgen.c needs to 
include pci.h .

I'm therefore suggesting the patch below (applies against both 2.4
and 2.6).

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx>

--- linux-2.6.10-rc1-mm5-full/net/core/pktgen.c.old     2004-11-13 
14:37:43.000000000 +0100
+++ linux-2.6.10-rc1-mm5-full/net/core/pktgen.c 2004-11-13 14:40:07.000000000 
@@ -69,7 +69,6 @@
 #include <linux/ioport.h>
 #include <linux/slab.h>
 #include <linux/interrupt.h>
-#include <linux/pci.h>
 #include <linux/delay.h>
 #include <linux/init.h>
 #include <linux/inet.h>

<Prev in Thread] Current Thread [Next in Thread>