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 6A07F45EEC for ; Thu, 19 Dec 2024 12:46:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5B814402BB; Thu, 19 Dec 2024 12:46:21 +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: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddttddgfedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfestdekredtredttden ucfhrhhomhepvfhhohhmrghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrg hlohhnrdhnvghtqeenucggtffrrghtthgvrhhnpedvjefhudeghedvtdeijeeigeetuedu gfejueekieeltdfhteevkeehhfeilefhtdenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtpdhn sggprhgtphhtthhopeekpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeguvghvse guphgukhdrohhrghdprhgtphhtthhopehsthgrsghlvgesughpughkrdhorhhgpdhrtghp thhtohepiihhihhgrghnghdrhhhusehinhhtvghlrdgtohhmpdhrtghpthhtohepghgrkh hhihhlsehmrghrvhgvlhhlrdgtohhmpdhrtghpthhtohepfhgrnhiihhgrnhhgrdhoshhs sehgmhgrihhlrdgtohhmpdhrtghpthhtohepuggrvhhiugdrmhgrrhgthhgrnhgusehrvg guhhgrthdrtghomhdprhgtphhtthhopehmrghtthhirghsrdhrohhnnhgslhhomhesvghr ihgtshhsohhnrdgtohhmpdhrtghpthhtohepmhgssehsmhgrrhhtshhhrghrvghshihsth gvmhhsrdgtohhm X-ME-Proxy: Feedback-ID: i47234305:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 19 Dec 2024 06:46:15 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: stable@dpdk.org, Zhigang Hu , Akhil Goyal , Fan Zhang , David Marchand , =?UTF-8?q?Mattias=20R=C3=B6nnblom?= , =?UTF-8?q?Morten=20Br=C3=B8rup?= 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: 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 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 Signed-off-by: Thomas Monjalon --- .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 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..31a7edb189 100644 --- a/lib/cryptodev/rte_cryptodev.h +++ b/lib/cryptodev/rte_cryptodev.h @@ -21,6 +21,11 @@ #include #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 - -#ifdef __cplusplus -extern "C" { -#endif /** * * Dequeue a burst of processed crypto operations from a queue on the crypto -- 2.47.1