Most recent kernel where this bug did not occur: None Distribution: Lunar Linux Problem Description: There are errors in the kernel headers. Typedef's and functions that are defined inside the __KERNEL__ scope are used elsewhere outside the __KERNEL__ scope which produce compilation errors when including the headers. I found this in linux/input.h, linux/bitops.h and asm/processor.h .
Created attachment 7798 [details] Patch for input.h
Created attachment 7799 [details] Patch for bitops.h
Created attachment 7800 [details] Patch for processor.h
linux/input.h was reported 2006-03-29 http://bugzilla.kernel.org/show_bug.cgi?id=6302 . These patches are only temporary, from the looks of things there is surlly alot more "misstakes" in the headers.
David Woodhouse has initiated an effort to create user-space clean header. See the headers* targets in recent kernel snapshot. As part f this effort the below files will be (or are already cleaned up). David - please let me know if can close this bug. /Sam
input.h is fixed; bitops.h and processor.h are not visible to userspace. If the reporter wants to file any more _specific_ bugs, please go ahead -- but I think this bug can probably be closed.
The issues reported are either already covered or not suitable for userspace. So the ticket is closed. /Sam
Yes this can be kept closed, latest headers are fine (been on holliday so sorry for the late answer). The problem wasnt that things are not usable/visible within userspace, problem was that the old headers exported kernel space items into userspace or visa versa (ie missing ifdef __KERNEL__).