mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-23 04:59:05 -04:00
qcacld-3.0: Fix clang warnings 'taking address of packed member'
warning: Taking address of packed member 're_list' of class or structure 'dfs_event' may result in an unaligned pointer value [-Waddress-of-packed-member]. Change-Id: I498aebc7631854774302379a96e844fa11be3ea6 CRs-Fixed: 2055487
This commit is contained in:
parent
5fc12a5e27
commit
eaf136a65e
2 changed files with 3 additions and 3 deletions
|
|
@ -1563,7 +1563,7 @@ typedef struct sSirSmeDisassocRsp {
|
|||
struct qdf_mac_addr peer_macaddr;
|
||||
tAniStaStatStruct perStaStats; /* STA stats */
|
||||
uint16_t staId;
|
||||
} qdf_packed tSirSmeDisassocRsp, *tpSirSmeDisassocRsp;
|
||||
} tSirSmeDisassocRsp, *tpSirSmeDisassocRsp;
|
||||
|
||||
/* / Definition for Disassociation indication from peer */
|
||||
typedef struct sSirSmeDisassocInd {
|
||||
|
|
|
|||
|
|
@ -342,7 +342,7 @@ struct dfs_event {
|
|||
uint8_t dfs_phyerr_eventq_serial_num;
|
||||
uint8_t peak_mag;
|
||||
STAILQ_ENTRY(dfs_event) re_list;
|
||||
} qdf_packed;
|
||||
};
|
||||
#ifdef WIN32
|
||||
#pragma pack(pop, dfs_event)
|
||||
#endif
|
||||
|
|
@ -496,7 +496,7 @@ struct dfs_nolelem {
|
|||
uint32_t nol_timeout_ms; /* NOL timeout value in msec */
|
||||
os_timer_t nol_timer; /* per element NOL timer */
|
||||
struct dfs_nolelem *nol_next; /* next element pointer */
|
||||
} qdf_packed;
|
||||
};
|
||||
#ifdef WIN32
|
||||
#pragma pack(pop, dfs_nolelem)
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Reference in a new issue