Comment 1 for bug 1824528

Revision history for this message
Satheesh Rajendran (sathnaga) wrote :

Tried to patch as below and it compiles fine, not sure if this is right fix though,

# git diff
diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c
index ebf210f..7d512e5 100644
--- a/hw/usb/dev-mtp.c
+++ b/hw/usb/dev-mtp.c
@@ -231,7 +231,7 @@ typedef struct {
     char date_modified[0]; /*unused*/
     char keywords[0]; /*unused*/
     /* string and other data follows */
-} QEMU_PACKED ObjectInfo;
+} ObjectInfo;

 #define TYPE_USB_MTP "usb-mtp"
 #define USB_MTP(obj) OBJECT_CHECK(MTPState, (obj), TYPE_USB_MTP)