__user removed from mtd-abi.h
Ricard Wanderlof
ricard.wanderlof at axis.com
Tue Jan 16 02:21:51 EST 2007
Hi,
I noticed that
#ifndef __KERNEL__
#define __user
#endif
has been removed from mtd-abi.h . I appreciate the reason, but I'm not
sure how to include this file in userspace now and get it to compile
properly.
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.
Is the above fix in fact broken for this particular file or should be
done in another way? I've had a look at the headers_install target in the
top level kernel makefile as well as the scripts/unifdef.c program, but I
seem to be going in circles. Could someone please enlighten me?
(As a side note, I've noticed that uClibc's include/features.h defines
__user to cope with such issues, but glibc's doesn't. So it might not be
appearant unless userspace code is built with glibc).
/Ricard
--
Ricard Wolf Wanderlöf ricardw(at)axis.com
Axis Communications AB, Lund, Sweden www.axis.com
Phone +46 46 272 2016 Fax +46 46 13 61 30
More information about the linux-mtd
mailing list