Skip to contentSkip to conversation

usb-linux.c compile error on latest code

Qemu-devel Chuck Brazie 2 participants 2 messages Dec 13, 2006

lore
Share & tools
lore
#0 lore raw

I pulled the latest code to rebuild my patch and I get compile errors on usb-linux.c. What do I need to change to get clean compiles? Chuck
------------------
In file included from /qemu-new/usb-linux.c:29:
/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:66: error: variable or field __user' declared void /usr/include/linux/usbdevice_fs.h:66: 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
/qemu-new/usb-linux.c: In function `usb_host_handle_control':
/qemu-new/usb-linux.c:102: error: invalid application of `sizeof' to an incomplete type
/qemu-new/usb-linux.c: In function `usb_host_handle_data':
/qemu-new/usb-linux.c:119: error: storage size of `bt' isn't known
/qemu-new/usb-linux.c:131: error: invalid application of sizeof' to an incomplete type /qemu-new/usb-linux.c:119: warning: unused variable bt'
/qemu-new/usb-linux.c: In function `usb_host_device_open':
/qemu-new/usb-linux.c:198: error: storage size of `ctrl' isn't known
/qemu-new/usb-linux.c:201: error: invalid application of sizeof' to an incomplete type /qemu-new/usb-linux.c:198: warning: unused variable ctrl'
make[1]: *** [usb-linux.o] Error 1
make[1]: Leaving directory `/qemu-new/i386-softmmu'
make: *** [subdir-i386-softmmu] Error 2

#1 lore raw
Quoted 2 lines · Chuck Brazie

I pulled the latest code to rebuild my patch and I get compile errors on usb-linux.c. What do I need to change to get clean compiles?

Your kernel headers are broken. See list archives.

Paul