Messages in this thread | | | Date | Sun, 20 Jul 2003 07:19:14 +0100 | From | Christoph Hellwig <> | Subject | Re: [Fwd: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h] |
| |
On Sat, Jul 19, 2003 at 11:59:23PM -0400, Jeff Garzik wrote:
> Date: Sun, 20 Jul 2003 04:55:29 +0200 > From: Thomas Graf <tgraf@suug.ch> > Subject: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h > To: netdev@oss.sgi.com > > Hello > > device.h should be protected with __KERNEL__ because it uses > __KERNEL__ protected structures. Userspace applications > including if_arp.h such as iproute2 will fail because > it finally includes device.h as well.
This is b0rked. People shouldn't include kernel headers from userspace for one thing, and if you want to share a single copy of a header for userspace and kernelspace you have to take of the ifdefs yourself if including kernel-only headers such as device.h
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |