]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 1 Feb 2018 15:51:18 +0000 (10:51 -0500)
commitbb3e34290f4503f248e767599a5179c290c126e9
treec0683adb0d9cc50553ff712c1f2d10e9f61407e5
parent02de757fc67678e5c7fcbfc2eded74dc0ea48bc7
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: 5456ad3d7f86 ("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