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 D944E43038; Sat, 12 Aug 2023 00:25:38 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF255432D2; Sat, 12 Aug 2023 00:23:35 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 8E27343264 for <dev@dpdk.org>; Sat, 12 Aug 2023 00:23:04 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id 601DB20FD411; Fri, 11 Aug 2023 15:23:02 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 601DB20FD411 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1691792583; bh=C/YMA9yN6s5RVxyM4rq37Jk8pnAt+mXJnaXpNtocpe0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J5yT0ybrwtIGMS6ImfK8dfB/nJfg8rEzQLZHerDQFkTCBGe42IRgKoRaff36/yZId JRaHoALo6j2Wwo7ZL++PBs+QTMQK6Oa578EYT8u9W7kReVnVnJKaOIWA3F3OOOZeV3 YJbFpDx+SSfKbZz7BX/8LS3kJ1qKxIgBdv/y2hGc= From: Tyler Retzlaff <roretzla@linux.microsoft.com> To: dev@dpdk.org Cc: Akhil Goyal <gakhil@marvell.com>, Anatoly Burakov <anatoly.burakov@intel.com>, Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>, Bruce Richardson <bruce.richardson@intel.com>, Chengwen Feng <fengchengwen@huawei.com>, Cristian Dumitrescu <cristian.dumitrescu@intel.com>, David Hunt <david.hunt@intel.com>, Erik Gabriel Carrillo <erik.g.carrillo@intel.com>, Fan Zhang <fanzhang.oss@gmail.com>, Ferruh Yigit <ferruh.yigit@amd.com>, Harman Kalra <hkalra@marvell.com>, Hemant Agrawal <hemant.agrawal@nxp.com>, Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>, Jerin Jacob <jerinj@marvell.com>, Junfeng Guo <junfeng.guo@intel.com>, Kevin Laatz <kevin.laatz@intel.com>, Kiran Kumar K <kirankumark@marvell.com>, Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, Matan Azrad <matan@nvidia.com>, Matt Peters <matt.peters@windriver.com>, Naga Harish K S V <s.v.naga.harish.k@intel.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, Olivier Matz <olivier.matz@6wind.com>, Ori Kam <orika@nvidia.com>, Radu Nicolau <radu.nicolau@intel.com>, Sachin Saxena <sachin.saxena@nxp.com>, Sameh Gobriel <sameh.gobriel@intel.com>, Satha Rao <skoteshwar@marvell.com>, Simei Su <simei.su@intel.com>, Srikanth Yalavarthi <syalavarthi@marvell.com>, Steven Webster <steven.webster@windriver.com>, Suanming Mou <suanmingm@nvidia.com>, Sunil Kumar Kori <skori@marvell.com>, Thomas Monjalon <thomas@monjalon.net>, Viacheslav Ovsiienko <viacheslavo@nvidia.com>, Vladimir Medvedkin <vladimir.medvedkin@intel.com>, Yipeng Wang <yipeng1.wang@intel.com>, Zhirun Yan <zhirun.yan@intel.com>, Tyler Retzlaff <roretzla@linux.microsoft.com> Subject: [PATCH 20/32] cryptodev: remove use of RTE STD C11 macro Date: Fri, 11 Aug 2023 15:22:35 -0700 Message-Id: <1691792567-10805-21-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> References: <1691792567-10805-1-git-send-email-roretzla@linux.microsoft.com> 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 C11 conformant compiler is documented as a minimum requirement to build and consume DPDK. Remove use of RTE_STD_C11 macro marking use of C11 features with __extension__ since it is no longer necessary. Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com> --- lib/cryptodev/cryptodev_pmd.h | 2 +- lib/cryptodev/rte_crypto_asym.h | 4 ---- lib/cryptodev/rte_crypto_sym.h | 3 --- lib/cryptodev/rte_cryptodev.h | 2 -- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/cryptodev/cryptodev_pmd.h b/lib/cryptodev/cryptodev_pmd.h index 4c98ced..3bb3d95 100644 --- a/lib/cryptodev/cryptodev_pmd.h +++ b/lib/cryptodev/cryptodev_pmd.h @@ -683,7 +683,7 @@ uint8_t rte_cryptodev_allocate_driver(struct cryptodev_driver *crypto_drv, * @internal * Cryptodev asymmetric crypto session. */ -RTE_STD_C11 struct rte_cryptodev_asym_session { +struct rte_cryptodev_asym_session { uint8_t driver_id; /**< Session driver ID. */ uint16_t max_priv_data_sz; diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 8b5794f..cbcfe1d 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -310,7 +310,6 @@ struct rte_crypto_rsa_xform { enum rte_crypto_rsa_priv_key_type key_type; - RTE_STD_C11 union { rte_crypto_uint d; /**< the RSA private exponent */ @@ -625,7 +624,6 @@ struct rte_crypto_asym_xform { enum rte_crypto_asym_xform_type xform_type; /**< Asymmetric crypto transform */ - RTE_STD_C11 union { struct rte_crypto_rsa_xform rsa; /**< RSA xform parameters */ @@ -725,7 +723,6 @@ struct rte_crypto_sm2_op_param { * Structure describing asymmetric crypto operation params. */ struct rte_crypto_asym_op { - RTE_STD_C11 union { struct rte_cryptodev_asym_session *session; /**< Handle for the initialised session context */ @@ -733,7 +730,6 @@ struct rte_crypto_asym_op { /**< Session-less API crypto operation parameters */ }; - RTE_STD_C11 union { struct rte_crypto_rsa_op_param rsa; struct rte_crypto_mod_op_param modex; diff --git a/lib/cryptodev/rte_crypto_sym.h b/lib/cryptodev/rte_crypto_sym.h index 76c868c..bde8010 100644 --- a/lib/cryptodev/rte_crypto_sym.h +++ b/lib/cryptodev/rte_crypto_sym.h @@ -594,7 +594,6 @@ struct rte_crypto_sym_xform { /**< next xform in chain */ enum rte_crypto_sym_xform_type type ; /**< xform type */ - RTE_STD_C11 union { struct rte_crypto_auth_xform auth; /**< Authentication / hash xform */ @@ -641,7 +640,6 @@ struct rte_crypto_sym_op { struct rte_mbuf *m_src; /**< source mbuf */ struct rte_mbuf *m_dst; /**< destination mbuf */ - RTE_STD_C11 union { void *session; /**< Handle for the initialised crypto/security session context */ @@ -649,7 +647,6 @@ struct rte_crypto_sym_op { /**< Session-less API crypto operation parameters */ }; - RTE_STD_C11 union { struct { struct { diff --git a/lib/cryptodev/rte_cryptodev.h b/lib/cryptodev/rte_cryptodev.h index ba73037..9246df9 100644 --- a/lib/cryptodev/rte_cryptodev.h +++ b/lib/cryptodev/rte_cryptodev.h @@ -109,7 +109,6 @@ struct rte_crypto_param_range { struct rte_cryptodev_symmetric_capability { enum rte_crypto_sym_xform_type xform_type; /**< Transform type : Authentication / Cipher / AEAD */ - RTE_STD_C11 union { struct { enum rte_crypto_auth_algorithm algo; @@ -198,7 +197,6 @@ struct rte_cryptodev_capabilities { enum rte_crypto_op_type op; /**< Operation type */ - RTE_STD_C11 union { struct rte_cryptodev_symmetric_capability sym; /**< Symmetric operation capability parameters */ -- 1.8.3.1