Эх сурвалжийг харах

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 CONFIG_ARCH_QCOM or CONFIG_ARCH_MSM
is enable.

Change-Id: I881622c0c447331c53576ce2263c587e1f074a22
CRs-Fixed: 3419264
Devender Kumar 2 жил өмнө
parent
commit
4d6c9d0ddf

+ 2 - 1
qdf/linux/src/i_qdf_mem.h

@@ -58,7 +58,8 @@
 #define QDF_RET_IP NULL
 #endif /* __KERNEL__ */
 #include <qdf_status.h>
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)) && defined(MSM_PLATFORM)
+#if ((LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)) && \
+		(IS_ENABLED(CONFIG_ARCH_MSM) || IS_ENABLED(CONFIG_ARCH_QCOM)))
 #include <linux/qcom-iommu-util.h>
 #endif