Skip to content

Commit b3e11ee

Browse files
GustavoARSilvaPing-Ke Shih
authored andcommitted
wifi: rtlwifi: Remove unused structs and avoid multiple -Wfamnae warnings
Wflex-array-member-not-at-end is coming in GCC-14, and we are getting ready to enable it globally. So, remove unused structs and fix the following -Wflex-array-member-not-at-end warnings: drivers/net/wireless/realtek/rtlwifi/btcoexist/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8188ee/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8192c/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8192ce/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8192cu/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8192de/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8192ee/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8192se/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8723ae/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8723be/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8723com/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/rtl8821ae/../wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] drivers/net/wireless/realtek/rtlwifi/wifi.h:1063:30: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end] Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Kees Cook <[email protected]> Acked-by: Ping-Ke Shih <[email protected]> Signed-off-by: Ping-Ke Shih <[email protected]> Link: https://msgid.link/ZjLFIa31BGPVCGh1@neat
1 parent f506e3e commit b3e11ee

File tree

1 file changed

+0
-27
lines changed
  • drivers/net/wireless/realtek/rtlwifi

1 file changed

+0
-27
lines changed

drivers/net/wireless/realtek/rtlwifi/wifi.h

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,33 +1048,6 @@ struct octet_string {
10481048
u16 length;
10491049
};
10501050

1051-
struct rtl_hdr_3addr {
1052-
__le16 frame_ctl;
1053-
__le16 duration_id;
1054-
u8 addr1[ETH_ALEN];
1055-
u8 addr2[ETH_ALEN];
1056-
u8 addr3[ETH_ALEN];
1057-
__le16 seq_ctl;
1058-
u8 payload[];
1059-
} __packed;
1060-
1061-
struct rtl_info_element {
1062-
u8 id;
1063-
u8 len;
1064-
u8 data[];
1065-
} __packed;
1066-
1067-
struct rtl_probe_rsp {
1068-
struct rtl_hdr_3addr header;
1069-
u32 time_stamp[2];
1070-
__le16 beacon_interval;
1071-
__le16 capability;
1072-
/*SSID, supported rates, FH params, DS params,
1073-
* CF params, IBSS params, TIM (if beacon), RSN
1074-
*/
1075-
struct rtl_info_element info_element[];
1076-
} __packed;
1077-
10781051
struct rtl_led_ctl {
10791052
bool led_opendrain;
10801053
enum rtl_led_pin sw_led0;

0 commit comments

Comments
 (0)