From 041b10a5f763fb9224ca92252d087f38c32831dc Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Fri, 17 Aug 2018 15:56:02 -0700 Subject: [PATCH] qcacmn: Fix CE history compilation issue alloc_mem_ce_debug_history() is currently stubbed out when HIF_CONFIG_SLUB_DEBUG_ON is defined, leading to silent CE history collection failure on MCL devices. Fix the #define to include the full definition of this function when HIF_CONFIG_SLUB_DEBUG_ON is enabled. Change-Id: I8cd4c81e21a3874d717e361751372912ce38d560 CRs-Fixed: 2299012 --- hif/src/ce/ce_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hif/src/ce/ce_main.c b/hif/src/ce/ce_main.c index dff280fbb83b..f741657e7e7a 100644 --- a/hif/src/ce/ce_main.c +++ b/hif/src/ce/ce_main.c @@ -1176,7 +1176,7 @@ void free_mem_ce_debug_hist_data(struct hif_softc *scn, uint32_t ce_id) * Note: For MCL, #if defined (HIF_CONFIG_SLUB_DEBUG_ON) needs to be checked * for defined here */ -#if HIF_CE_DEBUG_DATA_BUF +#if defined(HIF_CONFIG_SLUB_DEBUG_ON) || HIF_CE_DEBUG_DATA_BUF /** * alloc_mem_ce_debug_history() - Allocate mem for the CE descriptors storing * @scn: hif scn handle