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 BC01C45EED for ; Thu, 19 Dec 2024 14:31:49 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B48AD402A3; Thu, 19 Dec 2024 14:31:49 +0100 (CET) Received: from fout-a5-smtp.messagingengine.com (fout-a5-smtp.messagingengine.com [103.168.172.148]) by mails.dpdk.org (Postfix) with ESMTP id 1198F4025F; Thu, 19 Dec 2024 14:31:47 +0100 (CET) Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id A0B6713800F4; Thu, 19 Dec 2024 08:31:46 -0500 (EST) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Thu, 19 Dec 2024 08:31:46 -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=1734615106; x= 1734701506; bh=nBIOS46NijCGWNBtaUO7zZz1zK2/XIPGbV7rP7P6h+s=; b=V a3/UItTdhkui4oR8OdU/73dFj0bn/yzEwRrKOFUUTfiPvlqCoBKfWgSxiNoKBIUW dejxKPKE9kZGrbS3/For7FkmtRB4eA5LNRosjTGkPG/8wbvc07rVZWZiAQ9Tz09w S6FdFrokcn/heYL7Kh5RvmS/01HJ9GNFg3N1AYMPpvVvNyL1BVT6cbVoe+hIoTOm t8w4b9Ieph22BGkBAub97X5SiD3db98xixsESDoHAR1YqhHWDya47E/IDd0ID8lk M3fdvZqJGVazUnegudV2fP7Xo7kRQh64NzRmQP8ztkMOO13rIndZuqK0JVjxkCJO Y/bEZZ+Satp69do2yZZyw== 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=1734615106; x=1734701506; bh=n BIOS46NijCGWNBtaUO7zZz1zK2/XIPGbV7rP7P6h+s=; b=M1De9F3WRAs1jQeqh E+aeGBNImSiiU29z98a62M3LRfhMmNU01Em/xO/X/Z5Jx5zEmOiETEfkUgXS+OyM 7v0ZsT+hRVhaJxtxtxLSpW3y9BnAngybNBLRsL5XE28q9QEM+/vNBmg1Dnb3Wplz JP8VbQZ9T3iZRghDIfO5MBFz6mrIKVjXcxL/ZgfeXk7W4uaFOfYXhXMHER/prqV6 AiSwb9NAxaAJdkHoY0XHofz7oR4Su4Emp47nOimG2HxyR2vRK0mOL7tBmU36nlQR u7K7cIrfcUX9yI5UV2nL44mGeGWS3D2oSIoYy9rAk3b3gEbR7HaGbghGQgDnAP+8 EDjWw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddttddgheduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttden ucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrg hlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvjefhudeghedvtdeijeeigeetuedu gfejueekieeltdfhteevkeehhfeilefhtdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtpdhn sggprhgtphhtthhopeekpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghvse guphgukhdrohhrghdprhgtphhtthhopehsthgrsghlvgesughpughkrdhorhhgpdhrtghp thhtohepiihhihhgrghnghdrhhhusehinhhtvghlrdgtohhmpdhrtghpthhtohepghgrkh hhihhlsehmrghrvhgvlhhlrdgtohhmpdhrtghpthhtohepfhgrnhiihhgrnhhgrdhoshhs sehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhgssehsmhgrrhhtshhhrghrvghshihsth gvmhhsrdgtohhmpdhrtghpthhtohepuggrvhhiugdrmhgrrhgthhgrnhgusehrvgguhhgr thdrtghomhdprhgtphhtthhopehmrghtthhirghsrdhrohhnnhgslhhomhesvghrihgtsh hsohhnrdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Dec 2024 08:31:44 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: stable@dpdk.org, Zhigang Hu , Akhil Goyal , Fan Zhang , =?UTF-8?q?Morten=20Br=C3=B8rup?= , David Marchand , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= Subject: [PATCH v2] cryptodev: fix C++ include Date: Thu, 19 Dec 2024 14:30:50 +0100 Message-ID: <20241219133139.420001-1-thomas@monjalon.net> X-Mailer: git-send-email 2.47.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Some cryptodev functions were not included in an extern "C" block. There are 2 blocks, the second one being fast path inline functions, preceded with an include of the required rte_cryptodev_core.h file. Fixes: 719834a6849e ("use C linkage where appropriate in headers") Cc: stable@dpdk.org Reported-by: Zhigang Hu Signed-off-by: Thomas Monjalon --- v2: keep rte_cryptodev_core.h include at the same place --- .mailmap | 1 + lib/cryptodev/rte_cryptodev.h | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.mailmap b/.mailmap index 2bf38f9e8c..1e4bb06d6e 100644 --- a/.mailmap +++ b/.mailmap @@ -1794,6 +1794,7 @@ Zhenghua Zhou Zhenning Xiao Zhe Tao Zhichao Zeng +Zhigang Hu Zhigang Lu Zhiguang He Zhihong Peng diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h index c64d2f83a0..071ff3dbdf 100644 --- a/lib/cryptodev/rte_cryptodev.h +++ b/lib/cryptodev/rte_cryptodev.h @@ -22,6 +22,10 @@ #include "rte_cryptodev_trace_fp.h" +#ifdef __cplusplus +extern "C" { +#endif + /** * @internal Logtype used for cryptodev related messages. */ @@ -1928,11 +1932,16 @@ int rte_cryptodev_remove_deq_callback(uint8_t dev_id, uint16_t qp_id, struct rte_cryptodev_cb *cb); -#include +#ifdef __cplusplus +} +#endif + +#include "rte_cryptodev_core.h" #ifdef __cplusplus extern "C" { #endif + /** * * Dequeue a burst of processed crypto operations from a queue on the crypto @@ -2125,7 +2134,6 @@ rte_cryptodev_qp_depth_used(uint8_t dev_id, uint16_t qp_id) return rc; } - #ifdef __cplusplus } #endif -- 2.47.1