mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Fix compilation error due to htt_display_rx_buf_debug
The function is not present as inline in the non debug build, which will cause a compilation error. Fix issue by having an empty inline function in the header file. Some counters need to be defined outside of DEBUG_RX_RING_BUFFER. Change-Id: I755616aa55c2f38bca017137e91cc469de7fbdcf CRs-Fixed: 2004927
This commit is contained in:
parent
7e89acef2b
commit
c19888f4c5
2 changed files with 16 additions and 1 deletions
|
|
@ -684,6 +684,12 @@ void htt_rx_dbg_rxbuf_init(struct htt_pdev_t *pdev)
|
|||
pdev->refill_retry_timer_doubles = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* htt_display_rx_buf_debug() - display debug rx buff list and some counters
|
||||
* @pdev: pdev handle
|
||||
*
|
||||
* Return: Success
|
||||
*/
|
||||
static inline int htt_display_rx_buf_debug(struct htt_pdev_t *pdev)
|
||||
{
|
||||
int i;
|
||||
|
|
@ -855,6 +861,11 @@ static inline
|
|||
void htt_rx_dbg_rxbuf_init(struct htt_pdev_t *pdev)
|
||||
{
|
||||
}
|
||||
static inline int htt_display_rx_buf_debug(struct htt_pdev_t *pdev)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline
|
||||
void htt_rx_dbg_rxbuf_set(struct htt_pdev_t *pdev,
|
||||
uint32_t paddr,
|
||||
|
|
|
|||
|
|
@ -438,12 +438,16 @@ struct htt_pdev_t {
|
|||
int rx_buff_posted_cum;
|
||||
int rx_buff_recvd_cum;
|
||||
int rx_buff_recvd_err;
|
||||
#endif
|
||||
/*
|
||||
* Counters below are being invoked from functions defined outside of
|
||||
* DEBUG_RX_RING_BUFFER
|
||||
*/
|
||||
int rx_buff_debt_invoked;
|
||||
int rx_buff_fill_n_invoked;
|
||||
int refill_retry_timer_starts;
|
||||
int refill_retry_timer_calls;
|
||||
int refill_retry_timer_doubles;
|
||||
#endif
|
||||
|
||||
/* callback function for packetdump */
|
||||
tp_rx_pkt_dump_cb rx_pkt_dump_cb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue