Skip to content

Commit 5341d57

Browse files
committed
ath10k: wmi: remove array of flexible structures
I updated to sparse v0.6.4 and it warns: drivers/net/wireless/ath/ath10k/wmi.c: note: in included file (through drivers/net/wireless/ath/ath10k/core.h): drivers/net/wireless/ath/ath10k/wmi.h:3481:34: warning: array of flexible structures Fix it by changing the type to u8 array, in struct wmi_phyerr_hdr_arg it's stored as a void pointer anyway. Compile tested only. Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 56789ee commit 5341d57

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/wireless/ath/ath10k

1 file changed

+3
-1
lines changed

drivers/net/wireless/ath/ath10k/wmi.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3478,7 +3478,9 @@ struct wmi_phyerr_event {
34783478
__le32 num_phyerrs;
34793479
__le32 tsf_l32;
34803480
__le32 tsf_u32;
3481-
struct wmi_phyerr phyerrs[];
3481+
3482+
/* array of struct wmi_phyerr */
3483+
u8 phyerrs[];
34823484
} __packed;
34833485

34843486
struct wmi_10_4_phyerr_event {

0 commit comments

Comments
 (0)