[PATCH] make netdevice.h more userspace friendly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

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

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux