diff options
author | Johannes Berg <[email protected]> | 2021-02-05 11:06:33 +0200 |
---|---|---|
committer | Luca Coelho <[email protected]> | 2021-02-05 11:56:41 +0200 |
commit | 46e64deaa868a77f182b2be5c82dae94368999de (patch) | |
tree | dc055ffb5d8661298b2113fb33b43ac9328581e2 /tools/perf/scripts/python/netdev-times.py | |
parent | e497bed1a284f30b4017a61a25c3f3330db728ea (diff) |
iwlwifi: fw api: make hdr a zero-size array again
In struct iwl_tx_cmd, there's no risk (as Arnd implied) that we
might access this as an array, as it's really not an array and
cannot be - there's only a single 802.11 header per frame. The
only reason for this member is for being able to access it a
bit more nicely.
On the other hand, this structure is used as a sub-struct in a
few places, and then some compilers (e.g. clang with certain
options) complain as you shouldn't have structs with variable-
length fields embedded in other structs.
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Luca Coelho <[email protected]>
Link: https://lore.kernel.org/r/iwlwifi.20210205110447.46cd538c90bf.I92179567d96938598806b560be59d787c2a8cc16@changeid
Signed-off-by: Luca Coelho <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions