mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
qcacmn: Fix compiler issue with DISABLE_MON_CONFIG
Compiler threw error 'defined but not used [-Werror=unused-function]' when macro DISABLE_MON_CONFIG defined. Wrap those functions by DISABLE_MON_CONFIG, which used only within DISABLE_MON_CONFIG. Change-Id: Idd92b9c481d580a6ca3df39963fa98e11d9d0753 CRs-Fixed: 2418584
This commit is contained in:
parent
434105d7a5
commit
fb19a22340
1 changed files with 1 additions and 1 deletions
|
|
@ -1126,6 +1126,7 @@ void dp_rx_mon_dest_process(struct dp_soc *soc, uint32_t mac_id, uint32_t quota)
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef DISABLE_MON_CONFIG
|
||||
#ifndef QCA_WIFI_QCA6390
|
||||
/**
|
||||
* dp_rx_pdev_mon_buf_attach() - Allocate the monitor descriptor pool
|
||||
|
|
@ -1472,7 +1473,6 @@ dp_rx_pdev_mon_buf_detach(struct dp_pdev *pdev, int mac_id)
|
|||
* Return: QDF_STATUS_SUCCESS: success
|
||||
* QDF_STATUS_E_RESOURCES: Error return
|
||||
*/
|
||||
#ifndef DISABLE_MON_CONFIG
|
||||
QDF_STATUS
|
||||
dp_rx_pdev_mon_attach(struct dp_pdev *pdev) {
|
||||
struct dp_soc *soc = pdev->soc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue