__user removed from mtd-abi.h
David Woodhouse
dwmw2 at infradead.org
Tue Jan 16 07:01:47 EST 2007
On Tue, 2007-01-16 at 08:21 +0100, Ricard Wanderlof wrote:
> The commitlog from dmwm2 says 'Now that we have headers_install, we don't
> need this crap.'. Makes sense, but where is __user supposed to be defined
> now - it is used as an identifier further down in the file, and userspace
> programs that include mtd-abi.h therefore break during compilation.
> mtd-abi.h doesn't appear to simply be a userspace version of a kernel
> include file.
It _isn't_ defined. We automatically strip it out from the headers we
install...
shinybook /shiny/git/linux-2.6 $ make INSTALL_HDR_PATH=/tmp/foo headers_install >/dev/null
shinybook /shiny/git/linux-2.6 $ grep __user -r /tmp/foo/include
/tmp/foo/include/linux/capability.h:typedef struct __user_cap_header_struct {
/tmp/foo/include/linux/capability.h:typedef struct __user_cap_data_struct {
/tmp/foo/include/linux/videodev2.h:#define __user
Hm, that last one's a bug -- but there's certainly none in mtd-abi.h.
--
dwmw2
More information about the linux-mtd
mailing list