aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/linux-headers/linux/usb/ch9.h
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2023-11-11 02:21:37 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2023-11-11 02:40:39 +0300
commitc9eb66546bc5c72ff6a4424f5c73ada67d0aeaa8 (patch)
tree4a18f83f5979766f6a360805a97500e9b2beeb75 /contrib/libs/linux-headers/linux/usb/ch9.h
parent638336990198a7f36d43cfd21a42b25d9dcb6efc (diff)
downloadydb-c9eb66546bc5c72ff6a4424f5c73ada67d0aeaa8.tar.gz
Update contrib/libs/linux-headers to 6.5.9
Diffstat (limited to 'contrib/libs/linux-headers/linux/usb/ch9.h')
-rw-r--r--contrib/libs/linux-headers/linux/usb/ch9.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/libs/linux-headers/linux/usb/ch9.h b/contrib/libs/linux-headers/linux/usb/ch9.h
index 8bd8cc1080..6e3e07142a 100644
--- a/contrib/libs/linux-headers/linux/usb/ch9.h
+++ b/contrib/libs/linux-headers/linux/usb/ch9.h
@@ -376,7 +376,10 @@ struct usb_string_descriptor {
__u8 bLength;
__u8 bDescriptorType;
- __le16 wData[1]; /* UTF-16LE encoded */
+ union {
+ __le16 legacy_padding;
+ __DECLARE_FLEX_ARRAY(__le16, wData); /* UTF-16LE encoded */
+ };
} __attribute__ ((packed));
/* note that "string" zero is special, it holds language codes that
@@ -981,7 +984,11 @@ struct usb_ssp_cap_descriptor {
#define USB_SSP_MIN_RX_LANE_COUNT (0xf << 8)
#define USB_SSP_MIN_TX_LANE_COUNT (0xf << 12)
__le16 wReserved;
- __le32 bmSublinkSpeedAttr[1]; /* list of sublink speed attrib entries */
+ union {
+ __le32 legacy_padding;
+ /* list of sublink speed attrib entries */
+ __DECLARE_FLEX_ARRAY(__le32, bmSublinkSpeedAttr);
+ };
#define USB_SSP_SUBLINK_SPEED_SSID (0xf) /* sublink speed ID */
#define USB_SSP_SUBLINK_SPEED_LSE (0x3 << 4) /* Lanespeed exponent */
#define USB_SSP_SUBLINK_SPEED_LSE_BPS 0