[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bug report : error: variable or field `__user' declared void




Package: linux-kernel-headers
Version: 2.5.999-test7-bk-9

Hello,

I look the development of driver eagle for my adsl modem.
And we notice an error during compilation on Debian.
I think I found the problem.

/usr/include/linux/usbdevice_fs.h use "__user" but the definition of "__user" is not include automaticaly (there is in linux/compiler.h). Is it a bug? Or must we include <linux/compiler.h> before <linux/usbdevice_fs.h> ?

Here an example if my explanation is too bad :-).

root@mcoolive:/tmp/
-su2.05b$ echo "#include <linux/usbdevice_fs.h>" > test.c

root@mcoolive:/tmp/
-su2.05b$ gcc -D__KERNEL__ test.c
In file included from test.c:1:
/usr/include/linux/usbdevice_fs.h:49: error: variable or field `__user' declared void
...


Excuse my poor english.
mcoolive.

_________________________________________________________________
Trouvez l'âme soeur sur MSN Rencontres http://g.msn.fr/FR1000/9551



Reply to: