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

Bug#224360: linux-kernel-headers: linux/usb.h is broken



Daniel Jacobowitz <dan@debian.org> 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
schepler@math.berkeley.edu    haven't had breakfast yet."
                                 -- Orson Scott Card



Reply to: