Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: iwlegacy: Remove unused structs and avoid -Wflex-array-member-not-at-end warnings

Remove unused structures and avoid the following
-Wflex-array-member-not-at-end warnings:

drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h:68:39: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h:60:39: 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 <gustavoars@kernel.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Link: https://patch.msgid.link/aJl7TxeWgLdEKWhg@kspp
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Gustavo A. R. Silva and committed by
Johannes Berg
f90caeba b662bc50

-24
-24
drivers/net/wireless/intel/iwlegacy/iwl-spectrum.h
··· 50 50 __le16 duration; 51 51 } __packed; 52 52 53 - struct ieee80211_info_element { 54 - u8 id; 55 - u8 len; 56 - u8 data[]; 57 - } __packed; 58 - 59 - struct ieee80211_measurement_request { 60 - struct ieee80211_info_element ie; 61 - u8 token; 62 - u8 mode; 63 - u8 type; 64 - struct ieee80211_measurement_params params[]; 65 - } __packed; 66 - 67 - struct ieee80211_measurement_report { 68 - struct ieee80211_info_element ie; 69 - u8 token; 70 - u8 mode; 71 - u8 type; 72 - union { 73 - struct ieee80211_basic_report basic[0]; 74 - } u; 75 - } __packed; 76 - 77 53 #endif