From b467c5d59dcdb757d568555e3991c6978fb07da7 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: Tue, 6 Apr 2021 19:51:24 +0800 Subject: [PATCH] fix build error on L5.12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit meet below build error log: /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: In function ‘woal_request_pmqos_busfreq_high’: /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:143:31: error: ‘woal_pcie_pm_qos_req’ undeclared (first use in this function) 143 | cpu_latency_qos_add_request(&woal_pcie_pm_qos_req, 0); | ^~~~~~~~~~~~~~~~~~~~ /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:143:31: note: each undeclared identifier is reported only once for each function it appears in /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_pcie.c: In function ‘woal_release_pmqos_busfreq_high’: /home/sherry/work/mwifiex/mxm_wifiex/wlan_src/mlinux/moal_pcie.c:171:34: error: ‘woal_pcie_pm_qos_req’ undeclared (first use in this function) 171 | cpu_latency_qos_remove_request(&woal_pcie_pm_qos_req); | ^~~~~~~~~~~~~~~~~~~~ Signed-off-by: Sherry Sun Reviewed-by: yang.tian --- mxm_wifiex/wlan_src/mlinux/moal_pcie.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/mxm_wifiex/wlan_src/mlinux/moal_pcie.c b/mxm_wifiex/wlan_src/mlinux/moal_pcie.c index e692ccd..12bdca8 100644 --- a/mxm_wifiex/wlan_src/mlinux/moal_pcie.c +++ b/mxm_wifiex/wlan_src/mlinux/moal_pcie.c @@ -44,13 +44,11 @@ Change log: Local Variables ********************************************************/ #define DRV_NAME "NXP mdriver PCIe" -#if LINUX_VERSION_CODE <= KERNEL_VERSION(5, 11, 0) #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 35) #ifdef IMX_SUPPORT static struct pm_qos_request woal_pcie_pm_qos_req; #endif #endif -#endif /* PCIE resume handler */ static int woal_pcie_resume(struct pci_dev *pdev);