hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/net/wireless/intel/iwlegacy/commands.h
....@@ -203,7 +203,7 @@
203203 __le16 sequence;
204204
205205 /* command or response/notification data follows immediately */
206
- u8 data[0];
206
+ u8 data[];
207207 } __packed;
208208
209209 /**
....@@ -1112,7 +1112,7 @@
11121112 u8 global_key_type;
11131113 u8 flags;
11141114 u8 reserved;
1115
- struct il_wep_key key[0];
1115
+ struct il_wep_key key[];
11161116 } __packed;
11171117
11181118 #define WEP_KEY_WEP_TYPE 1
....@@ -1166,7 +1166,7 @@
11661166 u8 agc;
11671167 __le16 sig_avg;
11681168 __le16 noise_diff;
1169
- u8 payload[0];
1169
+ u8 payload[];
11701170 } __packed;
11711171
11721172 struct il3945_rx_frame_hdr {
....@@ -1175,7 +1175,7 @@
11751175 u8 reserved1;
11761176 u8 rate;
11771177 __le16 len;
1178
- u8 payload[0];
1178
+ u8 payload[];
11791179 } __packed;
11801180
11811181 struct il3945_rx_frame_end {
....@@ -1211,7 +1211,7 @@
12111211 __le16 ant_selection; /* ant A bit 4, ant B bit 5, ant C bit 6 */
12121212 __le16 agc_info; /* agc code 0:6, agc dB 7:13, reserved 14:15 */
12131213 u8 rssi_info[6]; /* we use even entries, 0/2/4 for A/B/C rssi */
1214
- u8 pad[0];
1214
+ u8 pad[];
12151215 } __packed;
12161216
12171217 /*
....@@ -1409,7 +1409,7 @@
14091409 * length is 26 or 30 bytes, followed by payload data
14101410 */
14111411 u8 payload[0];
1412
- struct ieee80211_hdr hdr[0];
1412
+ struct ieee80211_hdr hdr[];
14131413 } __packed;
14141414
14151415 /*
....@@ -1511,7 +1511,7 @@
15111511 * length is 26 or 30 bytes, followed by payload data
15121512 */
15131513 u8 payload[0];
1514
- struct ieee80211_hdr hdr[0];
1514
+ struct ieee80211_hdr hdr[];
15151515 } __packed;
15161516
15171517 /* TX command response is sent after *3945* transmission attempts.
....@@ -2520,7 +2520,7 @@
25202520 * for one scan to complete (i.e. receive N_SCAN_COMPLETE)
25212521 * before requesting another scan.
25222522 */
2523
- u8 data[0];
2523
+ u8 data[];
25242524 } __packed;
25252525
25262526 struct il_scan_cmd {
....@@ -2564,7 +2564,7 @@
25642564 * for one scan to complete (i.e. receive N_SCAN_COMPLETE)
25652565 * before requesting another scan.
25662566 */
2567
- u8 data[0];
2567
+ u8 data[];
25682568 } __packed;
25692569
25702570 /* Can abort will notify by complete notification with abort status. */
....@@ -2664,7 +2664,7 @@
26642664 __le16 tim_idx;
26652665 u8 tim_size;
26662666 u8 reserved1;
2667
- struct ieee80211_hdr frame[0]; /* beacon frame */
2667
+ struct ieee80211_hdr frame[]; /* beacon frame */
26682668 } __packed;
26692669
26702670 struct il_tx_beacon_cmd {
....@@ -2672,7 +2672,7 @@
26722672 __le16 tim_idx;
26732673 u8 tim_size;
26742674 u8 reserved1;
2675
- struct ieee80211_hdr frame[0]; /* beacon frame */
2675
+ struct ieee80211_hdr frame[]; /* beacon frame */
26762676 } __packed;
26772677
26782678 /******************************************************************************