diff --git a/hif/hostcmd.h b/hif/hostcmd.h index b14f161f..8d54bc32 100644 --- a/hif/hostcmd.h +++ b/hif/hostcmd.h @@ -555,7 +555,7 @@ struct hostcmd_cmd_set_linkadapt_cs_mode { /* HOSTCMD_CMD_DUMP_OTP_DATA */ struct hostcmd_cmd_dump_otp_data { struct hostcmd_header cmd_hdr; - u8 pload[0]; + u8 pload[]; } __packed; /* HOSTCMD_CMD_SET_MAC_ADDR, HOSTCMD_CMD_DEL_MAC_ADDR */ diff --git a/hif/pcie/dev.h b/hif/pcie/dev.h index a7014a0b..2f8c3663 100644 --- a/hif/pcie/dev.h +++ b/hif/pcie/dev.h @@ -223,7 +223,7 @@ struct pcie_desc_data { struct pcie_dma_data { __le16 fwlen; struct ieee80211_hdr wh; - char data[0]; + char data[]; } __packed; /* New Data Path */ @@ -457,7 +457,7 @@ struct rx_info { /* HW Rx buffer */ __le32 reserved3[6]; __le32 param; __le32 reserved4[2]; - __le32 hdr[0]; /* Len from HW includes rx_info w/ hdr */ + __le32 hdr[]; /* Len from HW includes rx_info w/ hdr */ } __packed; struct pcie_rx_desc_ndp { /* ToNIC Rx Empty Buffer Ring Entry */ @@ -671,7 +671,7 @@ struct acnt_tx_s { /* Accounting Record For Tx (at Enqueue time) */ __le32 tx_cnt; /* No. of pkt sent */ struct tx_info tx_info;/* Transmit parameters used for 1st MPDU/AMPDU */ struct pcie_dma_data hdr;/* Dot11 header used for 1st MPDU in AMPDU */ - u8 payload[0]; /* Variable Payload by use case */ + u8 payload[]; /* Variable Payload by use case */ } __packed; struct acnt_rx_s { /* Accounting Record for Rx PPDU */