Re: [Fwd: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h]

From: Christoph Hellwig (
Date: Sun Jul 20 2003 - 01:19:14 EST

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 <>
> Subject: [PATCH] missing __KERNEL__ ifdef in include/linux/device.h
> To:
> 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
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:39 EST