virtualbox/fix_error_in_USB_header.patch
Larry Finger 6374f221da Accepting request 1008893 from home:lwfinger:branches:Virtualization
Fix build breakage with kernel 6.0 due to variable-length array in middle of a struct. boo#1204151
  File "fix_error_in_USB_header.patch" is added.

OBS-URL: https://build.opensuse.org/request/show/1008893
OBS-URL: https://build.opensuse.org/package/show/Virtualization/virtualbox?expand=0&rev=659
2022-10-08 01:19:55 +00:00

21 lines
821 B
Diff

Index: a/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
===================================================================
--- a/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
+++ a/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
@@ -90,7 +90,6 @@ typedef struct USBPROXYURBLNX
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wpedantic"
#endif
- struct usbdevfs_urb KUrb;
#if RT_GNUC_PREREQ(6, 0)
# pragma GCC diagnostic pop
#endif
@@ -110,6 +109,7 @@ typedef struct USBPROXYURBLNX
bool fDiscarded;
/** Size to transfer in remaining fragments of a split URB */
uint32_t cbSplitRemaining;
+ struct usbdevfs_urb KUrb; /* This entry MUST be last */
} USBPROXYURBLNX, *PUSBPROXYURBLNX;
/**