Return-Path: Date: Thu, 25 Jan 2018 10:42:29 -0800 From: Eric Biggers Subject: Re: [PATCH] fs/crypto/hooks.c: fix build with pre-4.6 gcc versions Message-ID: <20180125184229.xhq73ad2el4dafh4@gmail.com> References: <20180119214524.222850-1-ebiggers3@gmail.com> <20180119135348.57f9efad999c62d93b95f9fa@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180119135348.57f9efad999c62d93b95f9fa@linux-foundation.org> To: "Theodore Y . Ts'o" Cc: linux-fscrypt@vger.kernel.org, Andrew Morton , Eric Biggers List-ID: On Fri, Jan 19, 2018 at 01:53:48PM -0800, Andrew Morton wrote: > On Fri, 19 Jan 2018 13:45:24 -0800 Eric Biggers wrote: > > > From: Eric Biggers > > > > gcc versions prior to 4.6 require an extra level of braces when using a > > designated initializer for a member in an anonymous struct or union. > > This caused a compile error with the 'struct qstr' initialization in > > __fscrypt_encrypt_symlink(). > > > > Fix it by using QSTR_INIT(). > > > > Reported-by: Andrew Morton > > Fixes: 76e81d6d5048 ("fscrypt: new helper functions for ->symlink()") > > Signed-off-by: Eric Biggers > > Tested-by: Andrew Morton Ted, can you apply this to the fscrypt tree?