Daniel Jacobowitz <[EMAIL PROTECTED]> writes:

> Please try removing the include of linux/mod_devicetable.h from
> linux/usb.h.  Does that fix it?

Wrapping that include in an #ifdef __KERNEL__ fixed those compilation
errors.  But then when I was testing the actual package builds of
eagle-adsl and fxload, I found that usbdevice_fs.h now gave errors:

In file included from ezusb.c:33:
/usr/include/linux/usbdevice_fs.h:49: error: variable or field `__user' 
declared void
/usr/include/linux/usbdevice_fs.h:49: error: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:56: error: variable or field `__user' 
declared void
/usr/include/linux/usbdevice_fs.h:56: error: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:100: error: variable or field `__user' 
declared void
/usr/include/linux/usbdevice_fs.h:100: error: syntax error before '*' token
/usr/include/linux/usbdevice_fs.h:109: error: syntax error before '}' token
/usr/include/linux/usbdevice_fs.h:116: error: variable or field `__user' 
declared void
/usr/include/linux/usbdevice_fs.h:116: error: syntax error before '*' token

Adding #include <linux/compiler.h> to linux/usbdevice_fs.h fixed these
errors.
-- 
Daniel Schepler              "Please don't disillusion me.  I
[EMAIL PROTECTED]    haven't had breakfast yet."
                                 -- Orson Scott Card


Reply via email to