From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 81218A0542; Mon, 29 Aug 2022 18:51:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 137A84069D; Mon, 29 Aug 2022 18:51:57 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 1BD934003C for ; Mon, 29 Aug 2022 18:51:55 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27TGUUaG013760; Mon, 29 Aug 2022 09:51:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=pfpt0220; bh=PJJUabm/jh0gD9FfYvN1Rf1o2ujIShJinJdrrU72v24=; b=VdLqnRVbX9X3OMB0yfjSyLZjMyvcGV/hHbvl8D7k1iNx6XWfgjQ7fj8tO6IksDARjTc5 B5xUtPsYNARKvWPrgr1ZV8mytVi6aIippBqcPCpJvJVYhwvM/ZonAPFWY6rxxRuIz+QV BI1pbEc5LZceSElUkwFcd/coKggdzP0UZ/3rOt81NtpB4GpU39KhU8nsWjL4+K1RqulG I3S8dHh2YH2vAAnUwiZlEzHgepsrBTXmiV6i+P1qa8920b3w6CfQHSbzVGjZUwdUJDjk bompOuz39K8CKhN6r2xXG+oHFnwRpytbCh7zVwjJM2kKbq2pdfIHr37JGzNeokWKDZWd 4A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3j7jsn87ga-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 29 Aug 2022 09:51:49 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 29 Aug 2022 09:51:47 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 29 Aug 2022 09:51:48 -0700 Received: from BG-LT92004.corp.innovium.com (unknown [10.193.84.95]) by maili.marvell.com (Postfix) with ESMTP id 610143F709F; Mon, 29 Aug 2022 09:51:46 -0700 (PDT) From: Anoob Joseph To: Honnappa Nagarahalli CC: Jerin Jacob , , Subject: [PATCH] rcu: fix build failure with debug dp log level Date: Mon, 29 Aug 2022 22:21:51 +0530 Message-ID: <20220829165151.472-1-anoobj@marvell.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: KgQjHe1zfeJEWqAOCosBdO75uOSSg9xc X-Proofpoint-GUID: KgQjHe1zfeJEWqAOCosBdO75uOSSg9xc X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-29_08,2022-08-25_01,2022-06-22_01 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Build fails if RTE_LOG_DP_LEVEL is set to RTE_LOG_DEBUG. Fix the same by including the required header when RTE_LOG_DP_LEVEL is set to RTE_LOG_DEBUG. ../lib/rcu/rte_rcu_qsbr.h:678:40: error: expected ‘)’ before ‘PRIu64’ 678 | "%s: status: least acked token = %" PRIu64, | ^~~~~~ Fixes: 30a1de105a5f ("lib: remove unneeded header includes") Cc: sean.morrissey@intel.com Signed-off-by: Anoob Joseph --- lib/rcu/rte_rcu_qsbr.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rcu/rte_rcu_qsbr.h b/lib/rcu/rte_rcu_qsbr.h index d81bf5e8db..b0f1720ca1 100644 --- a/lib/rcu/rte_rcu_qsbr.h +++ b/lib/rcu/rte_rcu_qsbr.h @@ -37,6 +37,10 @@ extern "C" { #include #include +#if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG +#include +#endif + extern int rte_rcu_log_type; #if RTE_LOG_DP_LEVEL >= RTE_LOG_DEBUG -- 2.25.1