From patchwork Fri Feb 11 16:02:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Kusztal X-Patchwork-Id: 107378 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 34646A0032; Fri, 11 Feb 2022 18:09:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C05664115E; Fri, 11 Feb 2022 18:09:19 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id 2426940140 for ; Fri, 11 Feb 2022 18:09:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644599356; x=1676135356; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=5eAiOABhu/8hk3a3VIlzVoil5G7oNOJ5ve19ZDXPMtg=; b=dNGNj4296VXomqKlxaXVG9hm7ysW/yC1ftL2qk+UCyULgJCiBdsSjZQy o6BitvLTcSQQRX6ldVoBQM0UqTTWVH2ESNJltCMdeuP9OcY5wch1muhuv Xh979DuEjvmq474m9iJi84Y3FOhSugdEXac5WTzZkwGGQz5oZ/JiCb21Y 1j7bUNJ42swRw0mJ1dOgTPXz9bV10hukRwvVnWs+DT+uC4EiCKJGEYqiU mkXqqRTJM5/6Jyv9FNGuh8UILnv8/dzUkP9M5CSVEJCOjhYyme0DKquyj aEIayXwU7Tad+IeDRPlnSJxGdq1FYgdfmfAJfFQ9hN9LkMw9sK4efnQDp w==; X-IronPort-AV: E=McAfee;i="6200,9189,10255"; a="247360859" X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="247360859" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Feb 2022 09:07:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,361,1635231600"; d="scan'208";a="488241898" Received: from silpixa00399302.ir.intel.com ([10.237.214.136]) by orsmga006.jf.intel.com with ESMTP; 11 Feb 2022 09:07:54 -0800 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, roy.fan.zhang@intel.com, Arek Kusztal Subject: [PATCH v3 3/4] crypto: use rte macro instead of direct attribute Date: Fri, 11 Feb 2022 16:02:37 +0000 Message-Id: <20220211160238.90065-4-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20220211160238.90065-1-arkadiuszx.kusztal@intel.com> References: <20220211160238.90065-1-arkadiuszx.kusztal@intel.com> 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 This commit replaces __extension__ attribute with RTE_STD_C11 in anonymous unions. It makes API consistent in terms of usage of C11 feature macro. Signed-off-by: Arek Kusztal --- lib/cryptodev/rte_crypto_asym.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/cryptodev/rte_crypto_asym.h b/lib/cryptodev/rte_crypto_asym.h index 58d47158de..7bdc847702 100644 --- a/lib/cryptodev/rte_crypto_asym.h +++ b/lib/cryptodev/rte_crypto_asym.h @@ -222,7 +222,7 @@ struct rte_crypto_rsa_xform { enum rte_crypto_rsa_priv_key_type key_type; - __extension__ + RTE_STD_C11 union { rte_crypto_param d; /**< d - Private key exponent @@ -408,7 +408,7 @@ struct rte_crypto_asym_xform { enum rte_crypto_asym_xform_type xform_type; /**< Asymmetric crypto transform */ - __extension__ + RTE_STD_C11 union { struct rte_crypto_rsa_xform rsa; /**< RSA xform parameters */ @@ -642,7 +642,7 @@ struct rte_crypto_asym_op { /**< Session-less API crypto operation parameters */ }; - __extension__ + RTE_STD_C11 union { struct rte_crypto_rsa_op_param rsa; struct rte_crypto_mod_op_param modex;