浏览代码

qcacmn: Check CONFIG_QCOM_MINIDUMP properly

On some targets, minidump will be built as DLKM, and use IS_ENABLED
macro to cover both built-in and DLKM scenario.

Change-Id: I93374b83020af7122531fe282042236cae8037b3
CRs-Fixed: 3116787
Lin Bai 3 年之前
父节点
当前提交
66822e1e46
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      qdf/linux/src/i_qdf_trace.h

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

@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2022 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
@@ -31,7 +32,7 @@
  * beginning with kernel version msm-4.19 since that is
  * when msm_minidump_removerefion() was added.
  */
-#if defined(CONFIG_QCOM_MINIDUMP) && \
+#if IS_ENABLED(CONFIG_QCOM_MINIDUMP) && \
 	(LINUX_VERSION_CODE >= KERNEL_VERSION(4, 19, 0))
 #define WLAN_QCOM_MINIDUMP
 #endif