mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacmn: Fix a compilation error on QDF mem stats
Correct a dependency between MEMORY_DEBUG and WLAN_DEBUFS. QDF memory stats is expected to be enabled only when MEMORY_DEBUG feature is there. Change-Id: Id14b5ccfa532660b24087f9456f99b1d41f5420c CRs-Fixed: 1108556
This commit is contained in:
parent
bdcb4db461
commit
66513f2083
1 changed files with 8 additions and 3 deletions
|
|
@ -96,7 +96,7 @@ u_int8_t prealloc_disabled = 1;
|
|||
qdf_declare_param(prealloc_disabled, byte);
|
||||
EXPORT_SYMBOL(prealloc_disabled);
|
||||
|
||||
#ifdef WLAN_DEBUGFS
|
||||
#if defined WLAN_DEBUGFS && defined MEMORY_DEBUG
|
||||
|
||||
/**
|
||||
* struct __qdf_mem_stat - qdf memory statistics
|
||||
|
|
@ -474,19 +474,24 @@ static void qdf_mem_debugfs_exit(void)
|
|||
qdf_mem_debugfs_root = NULL;
|
||||
}
|
||||
|
||||
#else /* WLAN_DEBUGFS */
|
||||
#else /* WLAN_DEBUGFS && MEMORY_DEBUG */
|
||||
|
||||
static inline void qdf_mem_kmalloc_inc(qdf_size_t size) {}
|
||||
static inline void qdf_mem_dma_inc(qdf_size_t size) {}
|
||||
static inline void qdf_mem_kmalloc_dec(qdf_size_t size) {}
|
||||
static inline void qdf_mem_dma_dec(qdf_size_t size) {}
|
||||
|
||||
#ifdef MEMORY_DEBUG
|
||||
|
||||
static QDF_STATUS qdf_mem_debugfs_init(void)
|
||||
{
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
static void qdf_mem_debugfs_exit(void) {}
|
||||
|
||||
#endif /* WLAN_DEBUGFS */
|
||||
#endif
|
||||
|
||||
#endif /* WLAN_DEBUGFS && MEMORY_DEBUG */
|
||||
|
||||
/**
|
||||
* __qdf_mempool_init() - Create and initialize memory pool
|
||||
|
|
|
|||
Loading…
Reference in a new issue