From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by dpdk.org (Postfix) with ESMTP id D59B51396 for ; Tue, 27 Sep 2016 09:45:28 +0200 (CEST) Received: by mail-qk0-f177.google.com with SMTP id g67so7312478qkd.0 for ; Tue, 27 Sep 2016 00:45:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SnkrI342qHBK5q4u/OEG1l7px66VwDh3JfIfdaloDao=; b=CmdQoa6lddQz+OapVL8wxn1jSYte3b+6mSEGGFvlzQCJqaembsjAWNueJdJRvcGccO kiJTSnXQIUOM1WXyB2fdW844vsnOt1QTs7szk7AtOnfDs+/bie1wSwIwYztW2R9V8hyx wTi5ln1RLl5PQwGokPsA+yPVDwTQkvjOGy6eBazU/AwRbUfj/ZggBiYBp5/v3PkeBuCG cvdN8uVgzkJ8oUvIewB7kI/3YpS/z+sswNhxEsoyjsov14D0Y34fxwWHAHfW0NLpHqPC 4w+GYrODghZ8iSQoQJS/E4juxet5Wjoco9dE9vQJYOrEs9avYsEBv4ZoHx2KAHnddKfR G5Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=SnkrI342qHBK5q4u/OEG1l7px66VwDh3JfIfdaloDao=; b=PTk3Sv5IylA4gcAIhk6YOlvf1vOO/TSgauGmL1KijoyMa28WkEZTqVeCpDvrpgWcf6 ghRIDkgqSuML3x7zYSI3yJ7ZQAgt4zTVyyW6gn++dREhpALqWhy3bK/Y0cVuKoLdbjsv C4SzQNYNePqnMt0VeGUH2weHvIKPJiJhWtwh/aJGZ6xMilMk5UMOIRue0G7e4oXe8rwx /RetnwWV7RtQKAouBZnVF8uadjppCZmGRXlvRfY9IwlQkzunvglUNEluw2Zn1vKIt40o gDnEBQ8si6E76plAfw7NlN6K4jbxTgEAVT0Aj/hIBC5F3C0JafBdqK1qbM07SoKm6vpk dh6Q== X-Gm-Message-State: AE9vXwPG3YTwITqJo4hlHT0sMrr2TiIATWGuErKRktgdkox31+Rn7ukLL7IF97L91l+BgKgj X-Received: by 10.194.178.130 with SMTP id cy2mr20974207wjc.138.1474962328343; Tue, 27 Sep 2016 00:45:28 -0700 (PDT) Received: from 6wind.com (guy78-3-82-239-227-177.fbx.proxad.net. [82.239.227.177]) by smtp.gmail.com with ESMTPSA id i2sm1187898wjz.28.2016.09.27.00.45.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Sep 2016 00:45:27 -0700 (PDT) Date: Tue, 27 Sep 2016 09:45:21 +0200 From: Adrien Mazarguil To: Pablo de Lara Cc: dev@dpdk.org, declan.doherty@intel.com Message-ID: <20160927074521.GY17252@6wind.com> References: <1474926635-13290-1-git-send-email-pablo.de.lara.guarch@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474926635-13290-1-git-send-email-pablo.de.lara.guarch@intel.com> Subject: Re: [dpdk-dev] [PATCH] cryptodev: fix compilation error in SUSE 11 SP2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2016 07:45:29 -0000 On Mon, Sep 26, 2016 at 10:50:35PM +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:71:0: > lib/librte_cryptodev/rte_cryptodev_pmd.h:76: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 Hmm, this error message does not seem related to your patch. Assuming a similar error is caused by the original code, I think there is a more important issue as the struct should not be empty. Can you check the error? > --- > 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 7fb5f6e..d19b378 100644 > --- a/lib/librte_cryptodev/rte_cryptodev.h > +++ b/lib/librte_cryptodev/rte_cryptodev.h > @@ -769,7 +769,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 -- Adrien Mazarguil 6WIND