diff --git a/dp/wifi3.0/be/dp_be.h b/dp/wifi3.0/be/dp_be.h index 3d2a1a73c2..90c834b2ab 100644 --- a/dp/wifi3.0/be/dp_be.h +++ b/dp/wifi3.0/be/dp_be.h @@ -125,7 +125,7 @@ struct dp_spt_page_desc_list { }; #define DP_CC_SPT_PAGE_UPDATE_VA(_page_base_va, _index, _desc_va) \ - { ((uint64_t *)(_page_base_va))[_index] = (uint64_t)(_desc_va); } + { (_page_base_va)[_index] = (uintptr_t)(_desc_va); } /** * struct dp_tx_bank_profile - DP wrapper for TCL banks @@ -366,6 +366,6 @@ static inline void *dp_cc_desc_find(struct dp_soc *soc, spt_page_va = (uint64_t *)cc_ctx->page_desc_base[ppt_page_id].page_v_addr; - return (void *)(*(spt_page_va + spt_va_id)); + return (void *)(uintptr_t)(*(spt_page_va + spt_va_id)); } #endif diff --git a/dp/wifi3.0/be/dp_be_rx.c b/dp/wifi3.0/be/dp_be_rx.c index f7a11da81a..620c8a9536 100644 --- a/dp/wifi3.0/be/dp_be_rx.c +++ b/dp/wifi3.0/be/dp_be_rx.c @@ -168,7 +168,7 @@ more_data: break; } - rx_desc = (struct dp_rx_desc *) + rx_desc = (struct dp_rx_desc *)(uintptr_t) hal_rx_get_reo_desc_va(ring_desc); dp_rx_desc_sw_cc_check(soc, rx_buf_cookie, &rx_desc); diff --git a/hal/wifi3.0/be/hal_be_rx_tlv.h b/hal/wifi3.0/be/hal_be_rx_tlv.h index c747533dc2..ead8fc76ce 100644 --- a/hal/wifi3.0/be/hal_be_rx_tlv.h +++ b/hal/wifi3.0/be/hal_be_rx_tlv.h @@ -712,7 +712,7 @@ static inline int hal_rx_mpdu_sequence_number_get_be(uint8_t *buf) * @ buf: pointer to the start of RX PKT TLV headers * @ hal_rx_msdu_metadata: pointer to the msdu info structure */ -static void +static inline void hal_rx_msdu_packet_metadata_get_generic_be(uint8_t *buf, void *pkt_msdu_metadata) { @@ -735,7 +735,7 @@ hal_rx_msdu_packet_metadata_get_generic_be(uint8_t *buf, * @buf: pointer to the start of RX PKT TLV header * Return: uint32_t(nss) */ -static uint32_t hal_rx_tlv_nss_get_be(uint8_t *buf) +static inline uint32_t hal_rx_tlv_nss_get_be(uint8_t *buf) { struct rx_pkt_tlvs *rx_pkt_tlvs = (struct rx_pkt_tlvs *)buf; uint8_t mimo_ss_bitmap; @@ -776,7 +776,7 @@ static uint32_t hal_rx_tlv_nss_get_be(uint8_t *buf) * * Return: void */ -static void +static inline void hal_rx_mon_hw_desc_get_mpdu_status_be(void *hw_desc_addr, struct mon_rx_status *rs) {