Quellcode durchsuchen

qcacmn: Fix compilation error observed with upstream kernel

Include <linux/qcom-iommu-util.h> file based on ANDROID_COMMON_KERNEL
macro as this file is not available in upstream kernel.

Change-Id: I2e56b33d290319352236d1faae3b29cd6362bc07
CRs-Fixed: 3682260
Surabhi Vishnoi vor 1 Jahr
Ursprung
Commit
a8d5f5b756
1 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. 3 2
      qdf/linux/src/i_qdf_mem.h

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

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -60,7 +60,8 @@
 #define QDF_RET_IP NULL
 #endif /* __KERNEL__ */
 #include <qdf_status.h>
-#if ((LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)) && \
+#if (defined(__ANDROID_COMMON_KERNEL__) && \
+		(LINUX_VERSION_CODE >= KERNEL_VERSION(5, 9, 0)) && \
 		(defined(MSM_PLATFORM) || defined(QCA_IPA_LL_TX_FLOW_CONTROL)))
 #include <linux/qcom-iommu-util.h>
 #endif