From eed5d30c5577f5f9c4d6d39f462e3c35e0a5ea74 Mon Sep 17 00:00:00 2001 From: Vevek Venkatesan Date: Tue, 2 Jun 2020 20:03:16 +0530 Subject: [PATCH] qcacmn: Use IS_ENABLED for the definition of kernel module Add support in code to use IS_ENABLED, if CONFIG_ARM_SMMU config as kernel module. Change-Id: I64c1e0c7918d520ed36a7a9e22fdf39f66e1c150 CRs-Fixed: 2701645 --- qdf/linux/src/i_qdf_mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qdf/linux/src/i_qdf_mem.h b/qdf/linux/src/i_qdf_mem.h index bae78ec7c344..8fd375958dad 100644 --- a/qdf/linux/src/i_qdf_mem.h +++ b/qdf/linux/src/i_qdf_mem.h @@ -58,7 +58,7 @@ #endif /* __KERNEL__ */ #include -#ifdef CONFIG_ARM_SMMU +#if IS_ENABLED(CONFIG_ARM_SMMU) #include #ifdef ENABLE_SMMU_S1_TRANSLATION #if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 0)) @@ -222,7 +222,7 @@ static inline bool __qdf_mem_smmu_s1_enabled(qdf_device_t osdev) return osdev->smmu_s1_enabled; } -#if defined(CONFIG_ARM_SMMU) && defined(ENABLE_SMMU_S1_TRANSLATION) +#if IS_ENABLED(CONFIG_ARM_SMMU) && defined(ENABLE_SMMU_S1_TRANSLATION) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0)) /** * __qdf_dev_get_domain() - get iommu domain from osdev