Skip to content

Commit

Permalink
wifi: ti: Avoid a hundred -Wflex-array-member-not-at-end warnings
Browse files Browse the repository at this point in the history
-Wflex-array-member-not-at-end is coming in GCC-14, and we are getting
ready to enable it globally.

Remove unused flexible-array members in multiple structures, and fix
a hundred -Wflex-array-member-not-at-end warnings[1] in
drivers/wireless/ti/

Link: https://gist.github.com/GustavoARSilva/fbf63c114d01319bbd19baf95b4d704b [1]
Link: https://github.com/KSPP/linux/issues/202
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/ZgDcwIgxkhs6ZVdY@neat
  • Loading branch information
Gustavo A. R. Silva authored and Kalle Valo committed Mar 28, 2024
1 parent d69aef8 commit f4b09b2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions drivers/net/wireless/ti/wl1251/cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ enum wl1251_commands {
struct wl1251_cmd_header {
u16 id;
u16 status;
/* payload */
u8 data[];
} __packed;

struct wl1251_command {
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/ti/wl1251/wl12xx_80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ struct ieee80211_header {
u8 sa[ETH_ALEN];
u8 bssid[ETH_ALEN];
__le16 seq_ctl;
u8 payload[];
} __packed;

struct wl12xx_ie_header {
Expand Down
2 changes: 0 additions & 2 deletions drivers/net/wireless/ti/wlcore/cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,6 @@ enum cmd_templ {
struct wl1271_cmd_header {
__le16 id;
__le16 status;
/* payload */
u8 data[];
} __packed;

#define WL1271_CMD_MAX_PARAMS 572
Expand Down
1 change: 0 additions & 1 deletion drivers/net/wireless/ti/wlcore/wl12xx_80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ struct ieee80211_header {
u8 sa[ETH_ALEN];
u8 bssid[ETH_ALEN];
__le16 seq_ctl;
u8 payload[];
} __packed;

struct wl12xx_ie_header {
Expand Down

0 comments on commit f4b09b2

Please sign in to comment.