diff --git a/hif/inc/hif.h b/hif/inc/hif.h index 6bd63762a4..795ce704fb 100644 --- a/hif/inc/hif.h +++ b/hif/inc/hif.h @@ -148,6 +148,12 @@ struct CE_state; #define HIF_MAX_GROUP 8 #ifdef CONFIG_SLUB_DEBUG_ON +#ifndef CONFIG_WIN +#define HIF_CONFIG_SLUB_DEBUG_ON +#endif +#endif + +#ifdef HIF_CONFIG_SLUB_DEBUG_ON #define QCA_NAPI_BUDGET 64 #define QCA_NAPI_DEF_SCALE 2 #else /* PERF build */ diff --git a/hif/src/ce/ce_service.c b/hif/src/ce/ce_service.c index 66e2938903..10baa5d75d 100644 --- a/hif/src/ce/ce_service.c +++ b/hif/src/ce/ce_service.c @@ -97,7 +97,7 @@ void hif_ce_war_enable(void) hif_ce_war1 = 1; } -#ifdef CONFIG_SLUB_DEBUG_ON +#ifdef HIF_CONFIG_SLUB_DEBUG_ON /** * struct hif_ce_event - structure for detailing a ce event @@ -294,7 +294,7 @@ void war_ce_src_ring_write_idx_set(struct hif_softc *scn, } } -#ifdef CONFIG_SLUB_DEBUG_ON +#ifdef HIF_CONFIG_SLUB_DEBUG_ON /** * ce_validate_nbytes() - validate nbytes for slub builds on tx descriptors * @nbytes: nbytes value being written into a send descriptor diff --git a/hif/src/ce/ce_tasklet.c b/hif/src/ce/ce_tasklet.c index c820d874f7..52595f289c 100644 --- a/hif/src/ce/ce_tasklet.c +++ b/hif/src/ce/ce_tasklet.c @@ -121,7 +121,7 @@ void init_tasklet_workers(struct hif_opaque_softc *scn) work_initialized = true; } -#ifdef CONFIG_SLUB_DEBUG_ON +#ifdef HIF_CONFIG_SLUB_DEBUG_ON /** * ce_schedule_tasklet() - schedule ce tasklet * @tasklet_entry: struct ce_tasklet_entry diff --git a/hif/src/pcie/if_pci.c b/hif/src/pcie/if_pci.c index 82f6f9ff8b..c5d9eb8c89 100644 --- a/hif/src/pcie/if_pci.c +++ b/hif/src/pcie/if_pci.c @@ -863,7 +863,7 @@ static irqreturn_t ce_per_engine_handler(int irq, void *arg) return IRQ_HANDLED; } -#ifdef CONFIG_SLUB_DEBUG_ON +#ifdef HIF_CONFIG_SLUB_DEBUG_ON /* worker thread to schedule wlan_tasklet in SLUB debug build */ static void reschedule_tasklet_work_handler(void *arg) @@ -899,7 +899,7 @@ static void hif_init_reschedule_tasklet_work(struct hif_pci_softc *sc) } #else static void hif_init_reschedule_tasklet_work(struct hif_pci_softc *sc) { } -#endif /* CONFIG_SLUB_DEBUG_ON */ +#endif /* HIF_CONFIG_SLUB_DEBUG_ON */ void wlan_tasklet(unsigned long data) {