From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrien Mazarguil Subject: Re: [PATCH v2] cryptodev: fix compilation error in SUSE 11 SP2 Date: Wed, 5 Oct 2016 10:51:55 +0200 Message-ID: <20161005085155.GD17252@6wind.com> References: <1474926635-13290-1-git-send-email-pablo.de.lara.guarch@intel.com> <1475635551-121997-1-git-send-email-pablo.de.lara.guarch@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, declan.doherty@intel.com To: Pablo de Lara Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id EDDB26CD8 for ; Wed, 5 Oct 2016 10:52:03 +0200 (CEST) Received: by mail-wm0-f49.google.com with SMTP id 197so41569770wmk.1 for ; Wed, 05 Oct 2016 01:52:03 -0700 (PDT) Content-Disposition: inline In-Reply-To: <1475635551-121997-1-git-send-email-pablo.de.lara.guarch@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wed, Oct 05, 2016 at 03:45:51AM +0100, Pablo de Lara wrote: > This commit fixes following build error, which happens in SUSE 11 SP2, > with gcc 4.5.1: > > In file included from lib/librte_cryptodev/rte_cryptodev.c:70:0: > lib/librte_cryptodev/rte_cryptodev.h:772:7: > error: flexible array member in otherwise empty struct > > Fixes: 347a1e037fd3 ("lib: use C99 syntax for zero-size arrays") > > Signed-off-by: Pablo de Lara > --- > > Changes in v2: > - Fixed commit message > > lib/librte_cryptodev/rte_cryptodev.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h > index d565f39..6ad5e91 100644 > --- a/lib/librte_cryptodev/rte_cryptodev.h > +++ b/lib/librte_cryptodev/rte_cryptodev.h > @@ -773,7 +773,7 @@ struct rte_cryptodev_sym_session { > } __rte_aligned(8); > /**< Public symmetric session details */ > > - char _private[]; > + __extension__ char _private[0]; > /**< Private session material */ > }; > > -- > 2.7.4 Acked-by: Adrien Mazarguil -- Adrien Mazarguil 6WIND