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)
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" CHECK(MTPState, (obj), TYPE_USB_MTP)
#define USB_MTP(obj) OBJECT_