[PATCH] make netdevice.h more userspace friendly

From: Kevin P. Fleming (kpfleming@cox.net)
Date: Fri Sep 12 2003 - 18:50:54 EST


Patch below moves linux/device.h and linux/percpu.h includes inside #ifdef __KERNEL__ block, so when netdevice.h is included by userspace they don't cause problems. Build tested on i386 (2.6.0-test5).

I'm not subscribed to this list, so if there is any discussion warranted please CC me. Thanks.


--- linux-2.6/include/linux/netdevice.h~ Thu Sep 11 17:44:09 2003
+++ linux-2.6/include/linux/netdevice.h Fri Sep 12 16:31:16 2003
@@ -28,14 +28,14 @@
#include <linux/if.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>
-#include <linux/device.h>
-#include <linux/percpu.h>

#include <asm/atomic.h>
#include <asm/cache.h>
#include <asm/byteorder.h>

#ifdef __KERNEL__
+#include <linux/device.h>
+#include <linux/percpu.h>
#include <linux/config.h>

struct divert_blk;

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