From a815fe58259dae45ca27a23ecc0fa320326bf12b Mon Sep 17 00:00:00 2001 From: Devender Kumar Date: Wed, 19 Jul 2023 16:37:29 +0530 Subject: [PATCH] qcacmn: Fix iommu domain attributes compilation issue with IPA enable When CONFIG_QCOM_IOMMU_UTIL is enable in vendor config, we have to use new set of API's to get iommu domain attributes, and while using __qdf_iommu_attr_to_os seeing compilation issue as some identifiers like, QCOM_IOMMU_MAPPING_CONF_S1_BYPASS are not declare. even when CONFIG_QCOM_IOMMU_UTIL is not enable we have dependency on qcom-iommu-util.h file as it has some identfiers which are in use, with or without CONFIG_QOM_IOMMU_UTIL. Fix is to include the header file qcom-iommu-util.h which contains the declaration of all the identifiers used in __qdf_iommu_attr_to_os and this file is included if MSM_PLATFORM or QCA_IPA_LL_TX_FLOW_CONTROL is defined. Change-Id: I82b1c13717d377a5ec4bcb74ff94f4d15fa1f638 CRs-Fixed: 3487912 --- qdf/linux/src/i_qdf_mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qdf/linux/src/i_qdf_mem.h b/qdf/linux/src/i_qdf_mem.h index 52e96e3da9..f093556fcd 100644 --- a/qdf/linux/src/i_qdf_mem.h +++ b/qdf/linux/src/i_qdf_mem.h @@ -61,7 +61,7 @@ #endif /* __KERNEL__ */ #include #if ((LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)) && \ - (IS_ENABLED(CONFIG_ARCH_MSM) || IS_ENABLED(CONFIG_ARCH_QCOM))) + (defined(MSM_PLATFORM) || defined(QCA_IPA_LL_TX_FLOW_CONTROL))) #include #endif