From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by dpdk.org (Postfix) with ESMTP id 3AC7F29CF for ; Thu, 23 Nov 2017 11:02:58 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id r68so15445089wmr.1 for ; Thu, 23 Nov 2017 02:02:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references:mime-version:content-transfer-encoding; bh=w0bybrZ3SpwYdUCRPwsjH6eK4fJma++jRDFTavi0U2k=; b=Bcpz4UML57KlGHws17GlT1nV9KekX/kY2bCltOSei5ZEXx4483JCyQue00YPEzjaAT pA/pbAmA0eEkOgK/+niz61yJZ5o65It7b5Pyi70hnzI/HI0ECHcZbwWJtEE3AWTZWKkh 9phC1TQWw9s4ZlDbSlFnyhvF3YaN0xYo/dAbFieQRdnm/jcudVQinbcPZvgm6nO0SRlB lLrcHN53c8tBIaQzWsQhPHWfLW8/cLgxuYTFyLV/qexobEZxHoYl7UdEvJ6wWF/K1URN EjiECzlZp3iDxq9ETNMRe2iqta7ZTFlHmg/8XUs/MDJEN4ose20vkCLDuvVgXk0nEYHq Yhbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references:mime-version :content-transfer-encoding; bh=w0bybrZ3SpwYdUCRPwsjH6eK4fJma++jRDFTavi0U2k=; b=KaSjkhRzwV3wZkpuUFZ2ezqp8BEwsARsrDoR7BrBVbtKua+0csu112QykdXRZKa+Kb EwUhU5Zqnf/J8ytq0f8kW1HLntrRc6mlhx8m7TVGGbt+Y1V87j8sHzpnmZYffqpHw3Le IPcMqzuEP8wiqqbi8wU22cHzDrKyf1QtyqiRAlC9GQQuNSzH95Hbl5/fZIyTxSpVfzeG q4XZm71ddvYjYOIRiomhAyGj9rWOrdJhACBShK4BEHhMp6+6vKHUsDsx5/sas1UQRK8n 8h72xP9tmA2hkM1wZL3C6CWCeTqpoYmHc2BV2TKAcPZfvSQ7TmkvFJN71r7/NXL9uBDU Nk1w== X-Gm-Message-State: AJaThX7JQCD3gd4sQw5sRVfALyuqHe3/L4q4mODKpDTRnUIP8UhiypkP t6Q2sc3Eg6TqQZemWX+Cn37Y X-Google-Smtp-Source: AGs4zMbNeqRTuxiMQCKFeSGotb387hf++AGRB8QuYCYqukx74z4YSNR47jS0R61F6aNSHd8emwzd2g== X-Received: by 10.80.244.132 with SMTP id s4mr33742655edm.294.1511431378637; Thu, 23 Nov 2017 02:02:58 -0800 (PST) Received: from laranjeiro-vm.dev.6wind.com. (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id q12sm13246499edj.29.2017.11.23.02.02.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Nov 2017 02:02:58 -0800 (PST) From: Nelio Laranjeiro To: Akhil Goyal , Declan Doherty Cc: dev@dpdk.org, Gaetan Rivet , pablo.de.lara.guarch@intel.com, stable@dpdk.org Date: Thu, 23 Nov 2017 11:02:38 +0100 Message-Id: X-Mailer: git-send-email 2.11.0 In-Reply-To: <5ed1354d41a6370faa8887a6f3acd1e20ef09668.1511431327.git.nelio.laranjeiro@6wind.com> References: <5ed1354d41a6370faa8887a6f3acd1e20ef09668.1511431327.git.nelio.laranjeiro@6wind.com> In-Reply-To: <1c3b73f0912ad4b3da8423590dc76fc83df16b80.1511338151.git.nelio.laranjeiro@6wind.com> References: <1c3b73f0912ad4b3da8423590dc76fc83df16b80.1511338151.git.nelio.laranjeiro@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/3] crypto: fix pedantic compilation errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Nov 2017 10:02:59 -0000 /root/dpdk/x86_64-native-linuxapp-gcc/include/rte_crypto.h:126:28: error: ISO C forbids zero-size array ‘sym’ [-Werror=pedantic] struct rte_crypto_sym_op sym[0]; ^~~ Zero-size array is an extension to the language it cannot be replaced by a empty size array i.e. [] because structure is inside an union. Fixes: d2a4223c4c6d ("cryptodev: do not store pointer to op specific params") Cc: pablo.de.lara.guarch@intel.com Cc: stable@dpdk.org Signed-off-by: Nelio Laranjeiro --- Changes in v2: replace RTE_STD_C11 by __extension__ --- lib/librte_cryptodev/rte_crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_cryptodev/rte_crypto.h b/lib/librte_cryptodev/rte_crypto.h index 3d672fe7d..6f0b29732 100644 --- a/lib/librte_cryptodev/rte_crypto.h +++ b/lib/librte_cryptodev/rte_crypto.h @@ -121,7 +121,7 @@ struct rte_crypto_op { rte_iova_t phys_addr; /**< physical address of crypto operation */ - RTE_STD_C11 + __extension__ union { struct rte_crypto_sym_op sym[0]; /**< Symmetric operation parameters */ -- 2.11.0