fscrypt: fix build with pre-4.6 gcc versions
authorEric Biggers <ebiggers@google.com>
Fri, 19 Jan 2018 21:45:24 +0000 (13:45 -0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Sun, 8 Apr 2018 10:35:04 +0000 (03:35 -0700)
commit6b4edfb10398cae62114f95201bdd2e997319920
tree4b762c7b67aa9c3c121228cc75d3b481da17b933
parent4bcc4865feab13ca1cfb64a33e9d38723f134350
fscrypt: fix build with pre-4.6 gcc versions

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 <akpm@linux-foundation.org>
Fixes: 76e81d6d5048 ("fscrypt: new helper functions for ->symlink()")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/crypto/hooks.c