From fb19a22340bb681971121318ef71dde609212a4e Mon Sep 17 00:00:00 2001 From: Lin Bai Date: Tue, 19 Mar 2019 10:34:02 +0800 Subject: [PATCH] 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 --- dp/wifi3.0/dp_rx_mon_dest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx_mon_dest.c b/dp/wifi3.0/dp_rx_mon_dest.c index c8ab3e74be..0cba72539b 100644 --- a/dp/wifi3.0/dp_rx_mon_dest.c +++ b/dp/wifi3.0/dp_rx_mon_dest.c @@ -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;