summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/cmd.h
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2024-03-25 05:09:04 +0300
committerKalle Valo <kvalo@kernel.org>2024-03-28 16:07:37 +0300
commitf4b09b29f8b498e6c5f7cd582b5c0cbd37c1b90a (patch)
tree80b6d36541aaaa409011cb08f0a8cda0a7d7d53a /drivers/net/wireless/ti/wlcore/cmd.h
parentd69aef8084cc72df7b0f2583096d9b037c647ec8 (diff)
downloadlinux-f4b09b29f8b498e6c5f7cd582b5c0cbd37c1b90a.tar.xz
wifi: ti: Avoid a hundred -Wflex-array-member-not-at-end warnings
-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
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/cmd.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/cmd.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/ti/wlcore/cmd.h b/drivers/net/wireless/ti/wlcore/cmd.h
index f2609d5b6bf7..4c2f2608ef3b 100644
--- a/drivers/net/wireless/ti/wlcore/cmd.h
+++ b/drivers/net/wireless/ti/wlcore/cmd.h
@@ -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