From d728324529d6ec0d9f8618851b0637ddfd35f1d1 Mon Sep 17 00:00:00 2001 From: fei tong Date: Tue, 8 Mar 2022 11:42:27 +0800 Subject: [PATCH] ipc: apr: Add config to control the ipc context print Add CONFIG_IPC_LOGGING block for the code that initialize the logging context. Change-Id: Ia5d8e5a579573e0ebce65ceb5798a7c2e0fd333f Signed-off-by: ftong --- ipc/apr.c | 2 ++ ipc/apr_vm.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ipc/apr.c b/ipc/apr.c index 25a052014de6..55d834de0e00 100755 --- a/ipc/apr.c +++ b/ipc/apr.c @@ -1214,10 +1214,12 @@ static int apr_probe(struct platform_device *pdev) return -ENOMEM; } +#ifdef CONFIG_IPC_LOGGING apr_pkt_ctx = ipc_log_context_create(APR_PKT_IPC_LOG_PAGE_CNT, "apr", 0); if (!apr_pkt_ctx) pr_err("%s: Unable to create ipc log context\n", __func__); +#endif /* CONFIG_IPC_LOGGING */ spin_lock(&apr_priv->apr_lock); apr_priv->is_initial_boot = true; diff --git a/ipc/apr_vm.c b/ipc/apr_vm.c index 6f4d4580d79a..a79f64d0bcbd 100644 --- a/ipc/apr_vm.c +++ b/ipc/apr_vm.c @@ -1421,10 +1421,12 @@ static int apr_probe(struct platform_device *pdev) return -ENOMEM; } +#ifdef CONFIG_IPC_LOGGING apr_pkt_ctx = ipc_log_context_create(APR_PKT_IPC_LOG_PAGE_CNT, "apr", 0); if (!apr_pkt_ctx) pr_err("%s: Unable to create ipc log context\n", __func__); +#endif /* CONFIG_IPC_LOGGING */ ret = of_property_read_string(pdev->dev.of_node, "qcom,subsys-name",