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 9DF8C23A for ; Wed, 22 Nov 2017 09:10:32 +0100 (CET) Received: by mail-wm0-f66.google.com with SMTP id x63so8333636wmf.2 for ; Wed, 22 Nov 2017 00:10:32 -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=ojI6MjRcEKYeRLH9RJU9+E/0PVwm+V2L4lxo1j2UMOw=; b=PgefP+Y5gJbsGjbyjOtjJUSaA8UMI6rGnF00jqrpyOawPvivbaKFcnH8/WBzGTS55i eJ8/IEV8CQgWQm7Ns4bK0t6MVqWhdqaKu4vVttq3uuKOyS2m6HWDgal+wUi7PWCQRtKp viR/+ybP7RULrIwB0GksGN7jaDXPjPLKZJT8+2+XbT31QhJ0PYQ3FWztI31VVcYBkSYw QCHq4cDaHTwGfD74kjx/KI6Q8Kp7teyklE/Jpvcg4wL/K40fb+lLXocq0rYgomXyTmc8 pdI9TyzPIgvS4i/nMCb1DoQ3B8KpYughbKVoda2a8rYrBuS2/xkoSsnf2tdCbVYw+yca 7EVQ== 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=ojI6MjRcEKYeRLH9RJU9+E/0PVwm+V2L4lxo1j2UMOw=; b=m4o05qUtSmgKCnrr7+4LIQQir608EH1aRT53SdvGl8ZCoD91V1+Ler6HjH620BokZx XuhhhReFWfHj0PowZnstGiHOlp1z0XQ+3uDdoScRKJHP9LVWJE6lUSzpIRg8pKFZU0My T6UCm1DO/fhWeJjaiAk7yameMqDFtdeGl+TWXZ9ebHZNI0Vl8WZHJrqcH9idDcLPhARL oYQzLyeV91WgyynRU63sJZRpyIuRz9I7ruUSQ5axQ8RqWRX5i47mduVXL/tfm1oqcZwd gXNrm6+mwjQ+dFabu4zD2WsPwiSnmfkar9n2sOu2Tkd/nmr9X1ykf6YDCIezf9yCVRxD P4uQ== X-Gm-Message-State: AJaThX4iH2SUQHAaOGPEhGcYMyrdQbar+mQh2V4D0TSpfoBHxWjmQNoY SWd3U/NsLYHWLZ8ALU8NbNO2 X-Google-Smtp-Source: AGs4zMa7CQBjpE3LZ1a1FldgeGXShliYuDgIObGT++EMBTyOlICyP1D5HmF41jILLCMgwbZTxcdvUg== X-Received: by 10.80.221.11 with SMTP id t11mr28279811edk.84.1511338232322; Wed, 22 Nov 2017 00:10:32 -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 w14sm10555892edi.26.2017.11.22.00.10.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Nov 2017 00:10:31 -0800 (PST) From: Nelio Laranjeiro To: Akhil Goyal , Declan Doherty Cc: dev@dpdk.org, pablo.de.lara.guarch@intel.com, stable@dpdk.org Date: Wed, 22 Nov 2017 09:10:17 +0100 Message-Id: <7f9e891b0e441a6b949d4b298140efad6936c67e.1511338151.git.nelio.laranjeiro@6wind.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <2efb17c107b980d2aea8007d19bc6363e751be10.1511338151.git.nelio.laranjeiro@6wind.com> References: <2efb17c107b980d2aea8007d19bc6363e751be10.1511338151.git.nelio.laranjeiro@6wind.com> In-Reply-To: <2efb17c107b980d2aea8007d19bc6363e751be10.1511338151.git.nelio.laranjeiro@6wind.com> References: <2efb17c107b980d2aea8007d19bc6363e751be10.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 2/3] crypto: fix pedentic 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: Wed, 22 Nov 2017 08:10:32 -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]; ^~~ 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 --- 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..dc6e91d1d 100644 --- a/lib/librte_cryptodev/rte_crypto.h +++ b/lib/librte_cryptodev/rte_crypto.h @@ -123,7 +123,7 @@ struct rte_crypto_op { RTE_STD_C11 union { - struct rte_crypto_sym_op sym[0]; + struct rte_crypto_sym_op *sym; /**< Symmetric operation parameters */ }; /**< operation specific parameters */ }; -- 2.11.0