diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2025-11-27 12:12:03 +0900 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-11-27 17:45:18 -0800 |
| commit | eeecf5d3a3a484cedfa3f2f87e6d51a7390ed960 (patch) | |
| tree | 7a1ca2c0f1859431fa42ae57e165abacc02d195b /lib/bitmap-str.c | |
| parent | 858b1d07e49106a302cc7c7fbeee4fb2698573c9 (diff) | |
| download | net-eeecf5d3a3a484cedfa3f2f87e6d51a7390ed960.tar.gz | |
net: wwan: mhi_wwan_mbim: Avoid -Wflex-array-member-not-at-end warning
Use DEFINE_RAW_FLEX() to avoid a -Wflex-array-member-not-at-end warning.
Remove fixed-size array struct usb_cdc_ncm_dpe16 dpe16[2]; from struct
mbim_tx_hdr, so that flex-array member struct mbim_tx_hdr::ndp16.dpe16[]
ends last in this structure.
Compensate for this by using the DEFINE_RAW_FLEX() helper to declare the
on-stack struct instance that contains struct usb_cdc_ncm_ndp16 as a
member. Adjust the rest of the code, accordingly.
So, with these changes fix the following warning:
drivers/net/wwan/mhi_wwan_mbim.c:81:34: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/bitmap-str.c')
0 files changed, 0 insertions, 0 deletions
