diff options
| author | Gustavo A. R. Silva <[email protected]> | 2024-08-05 15:30:26 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-08-08 03:00:01 +0000 |
| commit | 3f49edf44bd660d393b68a2b1d77a0841fb7f21d (patch) | |
| tree | a14ea7695e6377ad8e68f07de25ffc358b8a2ad3 /tools/testing/selftests/bpf/prog_tests/sockmap_basic.c | |
| parent | Merge branch 'tcp-active-reset' (diff) | |
| download | kernel-3f49edf44bd660d393b68a2b1d77a0841fb7f21d.tar.gz kernel-3f49edf44bd660d393b68a2b1d77a0841fb7f21d.zip | |
net/fungible: Avoid -Wflex-array-member-not-at-end warning
Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition of
a flexible structure where the size of the flexible-array member
is known at compile-time, and refactor the rest of the code,
accordingly.
So, with these changes, fix the following warning:
drivers/net/ethernet/fungible/funcore/fun_dev.c:550:43: 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]>
Link: https://patch.msgid.link/ZrDwEugW7DR/FlP5@cute
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/sockmap_basic.c')
0 files changed, 0 insertions, 0 deletions
