From: Herbert Xu Subject: Re: [PATCH v3] crypto: talitos: Remove zero_entry static initializer Date: Tue, 4 Aug 2015 17:45:12 +0800 Message-ID: <20150804094512.GC27959@gondor.apana.org.au> References: <926902712.309275.1438618477197.JavaMail.zimbra@xes-inc.com> <844976145.1361794.1438646181676.JavaMail.zimbra@xes-inc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "David S. Miller" , linux-crypto@vger.kernel.org, Christophe Leroy To: Aaron Sierra Return-path: Received: from helcar.hengli.com.au ([209.40.204.226]:54522 "EHLO helcar.hengli.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932622AbbHDJpS (ORCPT ); Tue, 4 Aug 2015 05:45:18 -0400 Content-Disposition: inline In-Reply-To: <844976145.1361794.1438646181676.JavaMail.zimbra@xes-inc.com> Sender: linux-crypto-owner@vger.kernel.org List-ID: On Mon, Aug 03, 2015 at 06:56:21PM -0500, Aaron Sierra wrote: > Compiling the talitos driver with my GCC 4.3.1 e500v2 cross-compiler > resulted in a failed build due to the anonymous union/structures > introduced in this commit: > > crypto: talitos - enhanced talitos_desc struct for SEC1 > > The build error was: > > drivers/crypto/talitos.h:56: error: unknown field 'len' specified in initializer > drivers/crypto/talitos.h:56: warning: missing braces around initializer > drivers/crypto/talitos.h:56: warning: (near initialization for 'zero_entry.') > drivers/crypto/talitos.h:57: error: unknown field 'j_extent' specified in initializer > drivers/crypto/talitos.h:58: error: unknown field 'eptr' specified in initializer > drivers/crypto/talitos.h:58: warning: excess elements in struct initializer > drivers/crypto/talitos.h:58: warning: (near initialization for 'zero_entry') > make[2]: *** [drivers/crypto/talitos.o] Error 1 > make[1]: *** [drivers/crypto] Error 2 > make: *** [drivers] Error 2 > > This patch eliminates the errors by relying on the C standard's > implicit assignment of zero to static variables. > > Signed-off-by: Aaron Sierra Applied. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt