From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <dev-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id A8CA545EEB;
	Thu, 19 Dec 2024 12:46:20 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 3ED22402A3;
	Thu, 19 Dec 2024 12:46:20 +0100 (CET)
Received: from fout-b8-smtp.messagingengine.com
 (fout-b8-smtp.messagingengine.com [202.12.124.151])
 by mails.dpdk.org (Postfix) with ESMTP id 2B40E402A0;
 Thu, 19 Dec 2024 12:46:18 +0100 (CET)
Received: from phl-compute-03.internal (phl-compute-03.phl.internal
 [10.202.2.43])
 by mailfout.stl.internal (Postfix) with ESMTP id 42A97114012C;
 Thu, 19 Dec 2024 06:46:17 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-03.internal (MEProxy); Thu, 19 Dec 2024 06:46:17 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=
 cc:cc:content-transfer-encoding:content-type:date:date:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to; s=fm1; t=1734608777; x=
 1734695177; bh=3tjjmzrsBCFRNj7EN0S+K/O8gR0M6lOE4hOcVJxoLcs=; b=A
 tULrZvixNpdp9+Q4uHo7mPbcvspNhQIvnW54LNfo4Rmmk26sxRncGz9qcJRM7NPy
 ZY9UTlICIEusfUv/LzyNjU05I/9O8HH1nmN4tajupH+dAkuf9KmizuABEvcZbFwq
 U987W6i4iHGXXhkHZObupFrqJGd84B6+K5xZ4ZuVGWkwCW6sa+MVIVLFyPE7lwEo
 a62Q0BYwoakGm1XtPR/MTFH2WsVolNdi1557ATFHtbx+bZHIrzOHQOgcCFRUB489
 wDs+xDCVs+pbZ5hpHdhMY/y4Cq/x1pTd4xbBXznT+3YLHxHa46pwxqdRD00bWnAd
 OMlfW4X/Slz0ZlwOItcUw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; t=1734608777; x=1734695177; bh=3
 tjjmzrsBCFRNj7EN0S+K/O8gR0M6lOE4hOcVJxoLcs=; b=1FtbJ9eOBG1gBFpkH
 XY3TP66pOdrr+z59gZlYIrox5MIOJ0fi6kq6UzLMZgYRN8Gi96LsirCosJs3anIK
 sJD4a5xL1IBCzDEM7iH3JYMUPinCJUyQlHdpKNNDbH/ue4bslsfoK7QoT+fpv8pd
 5SQMgov/2ilrmdv79LhUcMBnDc/rotTbLBEyj94pFfGbPVIMSIGQEsxxipdu1/XN
 CbOHhRCSKSoyKop1YkwHUiAakTMnfK3NxClLPVM/Bqt7MJO6tISYShl/KOwfOVy8
 xPkJIZBMl4pV9vs00F5n+VtoWMHeDtKM0PiHg8OLbeJ8ezNU6N+RFvaGOgbzJKX2
 FyrvQ==
X-ME-Sender: <xms:iAdkZ0ZOKlQla7QME7odaqEgCJRA0JDcYz4qaYt6JP7rsQAb6Yj-OQ>
 <xme:iAdkZ_ZT1Pybi63ZRkIow3rRub7PzMLKfPQq2y92Wtm_s6jdtgYLbhG1IZJhl7zLe
 AmIOINaZKb6x2yy_Q>
X-ME-Received: <xmr:iAdkZ-8b_xsD3pRFCEqYXTAab4KartY7TPW7EXKeFTciwkdJdaWj6QXOvwd3Kcm15NCtvWxWA4lm8ajhoShrzmJGjV5SD1M>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddttddgfedtucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu
 rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh
 htshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttden
 ucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrg
 hlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvjefhudeghedvtdeijeeigeetuedu
 gfejueekieeltdfhteevkeehhfeilefhtdenucevlhhushhtvghrufhiiigvpedtnecurf
 grrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtpdhn
 sggprhgtphhtthhopeekpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghvse
 guphgukhdrohhrghdprhgtphhtthhopehsthgrsghlvgesughpughkrdhorhhgpdhrtghp
 thhtohepiihhihhgrghnghdrhhhusehinhhtvghlrdgtohhmpdhrtghpthhtohepghgrkh
 hhihhlsehmrghrvhgvlhhlrdgtohhmpdhrtghpthhtohepfhgrnhiihhgrnhhgrdhoshhs
 sehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggrvhhiugdrmhgrrhgthhgrnhgusehrvg
 guhhgrthdrtghomhdprhgtphhtthhopehmrghtthhirghsrdhrohhnnhgslhhomhesvghr
 ihgtshhsohhnrdgtohhmpdhrtghpthhtohepmhgssehsmhgrrhhtshhhrghrvghshihsth
 gvmhhsrdgtohhm
X-ME-Proxy: <xmx:iAdkZ-oK72WiS80DqoE6WSs-CdY7FlNjJer--K8WEq6B34jO8WedVw>
 <xmx:iAdkZ_qlkWIW8BvufjPyhLceteLQB6_L5x7TmgqJ6VkfPct8nWDw1A>
 <xmx:iAdkZ8TjgCJ2tNQrM220YRYTBAXlo6dM35tsiB-S7qsrsumsTIRg6w>
 <xmx:iAdkZ_qj0OCKp4nBqw1uYplApslnse7WBuTCwwDQSnHNl0Ai_RdqOA>
 <xmx:iQdkZzfe-JnnzQ1SREDOGM7J5jaE9iRsXKuw8Sa5od5WQJer2_HSCILj>
Feedback-ID: i47234305:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 19 Dec 2024 06:46:15 -0500 (EST)
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: stable@dpdk.org, Zhigang Hu <zhigang.hu@intel.com>,
 Akhil Goyal <gakhil@marvell.com>, Fan Zhang <fanzhang.oss@gmail.com>,
 David Marchand <david.marchand@redhat.com>,
 =?UTF-8?q?Mattias=20R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>,
 =?UTF-8?q?Morten=20Br=C3=B8rup?= <mb@smartsharesystems.com>
Subject: [PATCH] cryptodev: fix C++ include
Date: Thu, 19 Dec 2024 12:45:54 +0100
Message-ID: <20241219114555.406331-1-thomas@monjalon.net>
X-Mailer: git-send-email 2.47.1
In-Reply-To: <PH0PR11MB57845FF3ACDF02982A05C0A588062@PH0PR11MB5784.namprd11.prod.outlook.com>
References: <PH0PR11MB57845FF3ACDF02982A05C0A588062@PH0PR11MB5784.namprd11.prod.outlook.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions <dev.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/dev>,
 <mailto:dev-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/dev/>
List-Post: <mailto:dev@dpdk.org>
List-Help: <mailto:dev-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/dev>,
 <mailto:dev-request@dpdk.org?subject=subscribe>
Errors-To: dev-bounces@dpdk.org

Some cryptodev functions were not included in the extern "C" block,
so it is moved to start before.

An include is also moved to avoid being part of this block.

Fixes: 719834a6849e ("use C linkage where appropriate in headers")
Cc: stable@dpdk.org

Reported-by: Zhigang Hu <zhigang.hu@intel.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 .mailmap                      |  1 +
 lib/cryptodev/rte_cryptodev.h | 10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/.mailmap b/.mailmap
index 2bf38f9e8c..1e4bb06d6e 100644
--- a/.mailmap
+++ b/.mailmap
@@ -1794,6 +1794,7 @@ Zhenghua Zhou <zhenghuax.zhou@intel.com>
 Zhenning Xiao <zhenning.xiao@intel.com>
 Zhe Tao <zhe.tao@intel.com>
 Zhichao Zeng <zhichaox.zeng@intel.com>
+Zhigang Hu <zhigang.hu@intel.com>
 Zhigang Lu <zlu@ezchip.com>
 Zhiguang He <hezhiguang3@huawei.com>
 Zhihong Peng <zhihongx.peng@intel.com>
diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h
index c64d2f83a0..31a7edb189 100644
--- a/lib/cryptodev/rte_cryptodev.h
+++ b/lib/cryptodev/rte_cryptodev.h
@@ -21,6 +21,11 @@
 #include <rte_rcu_qsbr.h>
 
 #include "rte_cryptodev_trace_fp.h"
+#include "rte_cryptodev_core.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 /**
  * @internal Logtype used for cryptodev related messages.
@@ -1928,11 +1933,6 @@ int rte_cryptodev_remove_deq_callback(uint8_t dev_id,
 				      uint16_t qp_id,
 				      struct rte_cryptodev_cb *cb);
 
-#include <rte_cryptodev_core.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
 /**
  *
  * Dequeue a burst of processed crypto operations from a queue on the crypto
-- 
2.47.1