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

From: Adrian Bunk
Date: Sat Nov 13 2004 - 09:55:19 EST


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 +0100
@@ -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>


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/