diff options
author | Arnd Bergmann <[email protected]> | 2023-05-23 13:32:35 +0200 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2023-05-25 19:14:15 +0300 |
commit | 47e612268ea02f7d2bcbaa47528698b5be61a8cf (patch) | |
tree | a6151d5c090d8dcf7024b6c137a46c7427902d1f /tools/perf/scripts/python/stat-cpi.py | |
parent | 56fc4d482783f5e45a6a2b3ec0d9f557908cdf77 (diff) |
wifi: rtw89: use flexible array member in rtw89_btc_btf_tlv
struct rtw89_btc_btf_tlv contains a one-byte member that is intended as a
flexible array:
In function 'fortify_memcpy_chk',
inlined from '_append_tdma' at drivers/net/wireless/realtek/rtw89/coex.c:1579:3:
include/linux/fortify-string.h:583:25: error: call to '__write_overflow_field' declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
583 | __write_overflow_field(p_size_field, size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Make this actually use a flexible array to let the compiler understand.
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Ping-Ke Shih <[email protected]>
Reviewed-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stat-cpi.py')
0 files changed, 0 insertions, 0 deletions