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

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



On Thu, Dec 18, 2003 at 03:17:57AM -0800, Daniel Schepler wrote:
> Package: linux-kernel-headers
> Version: 2.5.999-test7-bk-10
> Severity: important
> 
> When I try compiling a file containing just "#include <linux/usb.h>" I
> get the following errors:
> 
> In file included from /usr/include/linux/usb.h:4,
>                  from /tmp/foo.c:1:
> /usr/include/linux/mod_devicetable.h:18: error: syntax error before "__u32"
> /usr/include/linux/mod_devicetable.h:20: error: syntax error before "class"
> /usr/include/linux/mod_devicetable.h:21: error: syntax error before "driver_data"
> /usr/include/linux/mod_devicetable.h:31: error: syntax error before "__u32"
> /usr/include/linux/mod_devicetable.h:33: error: syntax error before "model_id"
> /usr/include/linux/mod_devicetable.h:34: error: syntax error before "specifier_id"
> /usr/include/linux/mod_devicetable.h:35: error: syntax error before "version"
> /usr/include/linux/mod_devicetable.h:36: error: syntax error before "driver_data"
> /usr/include/linux/mod_devicetable.h:99: error: syntax error before "__u16"
> /usr/include/linux/mod_devicetable.h:103: error: syntax error before "idProduct"
> /usr/include/linux/mod_devicetable.h:104: error: syntax error before "bcdDevice_lo"
> /usr/include/linux/mod_devicetable.h:105: error: syntax error before "bcdDevice_hi"
> /usr/include/linux/mod_devicetable.h:108: error: syntax error before "bDeviceClass"
> /usr/include/linux/mod_devicetable.h:109: error: syntax error before "bDeviceSubClass"
> /usr/include/linux/mod_devicetable.h:110: error: syntax error before "bDeviceProtocol"
> /usr/include/linux/mod_devicetable.h:113: error: syntax error before "bInterfaceClass"
> /usr/include/linux/mod_devicetable.h:114: error: syntax error before "bInterfaceSubClass"
> /usr/include/linux/mod_devicetable.h:115: error: syntax error before "bInterfaceProtocol"
> /usr/include/linux/mod_devicetable.h:118: error: syntax error before "driver_info"
> /usr/include/linux/mod_devicetable.h:135: error: syntax error before "__u16"
> /usr/include/linux/mod_devicetable.h:138: error: syntax error before "dev_type"
> /usr/include/linux/mod_devicetable.h:139: error: syntax error before "cu_model"
> /usr/include/linux/mod_devicetable.h:140: error: syntax error before "dev_model"
> /usr/include/linux/mod_devicetable.h:142: error: syntax error before "driver_info"
> 
> If I add "#include <linux/types.h>" before that, then I get:
> 
> In file included from /usr/include/linux/usb.h:4,
>                  from /tmp/foo.c:2:
> /usr/include/linux/mod_devicetable.h:21: error: syntax error before "kernel_ulong_t"
> /usr/include/linux/mod_devicetable.h:36: error: syntax error before "kernel_ulong_t"
> /usr/include/linux/mod_devicetable.h:118: error: syntax error before "kernel_ulong_t"
> /usr/include/linux/mod_devicetable.h:142: error: syntax error before "kernel_ulong_t"
> 
> This is breaking several package builds, including eagle-adsl and
> fxload.

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

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: