diff options
| author | Mohit Khanna <mkhannaqca@codeaurora.org> | 2017-02-09 12:50:15 -0800 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-02-10 02:28:23 -0800 |
| commit | e033cafbbba241faacbaf208cbd8509e897776eb (patch) | |
| tree | 61a17af5ea695c24c59423d0a2d1452426f281d3 | |
| parent | ff29955158ee2a78b71c6aaab554a5fa39fc4d00 (diff) | |
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 the 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
| -rw-r--r-- | core/dp/htt/htt_internal.h | 11 | ||||
| -rw-r--r-- | core/dp/htt/htt_types.h | 6 |
2 files changed, 16 insertions, 1 deletions
diff --git a/core/dp/htt/htt_internal.h b/core/dp/htt/htt_internal.h index b8d427f35605..5a437431cb9f 100644 --- a/core/dp/htt/htt_internal.h +++ b/core/dp/htt/htt_internal.h @@ -659,6 +659,12 @@ void htt_rx_dbg_rxbuf_init(struct htt_pdev_t *pdev) } } +/** + * 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; @@ -831,6 +837,11 @@ void htt_rx_dbg_rxbuf_init(struct htt_pdev_t *pdev) { return; } +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, diff --git a/core/dp/htt/htt_types.h b/core/dp/htt/htt_types.h index caa0ca455347..a9c48c6e5181 100644 --- a/core/dp/htt/htt_types.h +++ b/core/dp/htt/htt_types.h @@ -418,12 +418,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; |
