提交 b14c8e6a 编写于 作者: R Richard Weinberger 提交者: Theodore Ts'o

fscrypt: properly declare on-stack completion

When a completion is declared on-stack we have to use
COMPLETION_INITIALIZER_ONSTACK().

Fixes: 0b81d077 ("fs crypto: move per-file encryption from f2fs
tree to fs/crypto")
Signed-off-by: NRichard Weinberger <richard@nod.at>
Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
上级 46f47e48
......@@ -86,7 +86,7 @@ struct fscrypt_completion_result {
#define DECLARE_FS_COMPLETION_RESULT(ecr) \
struct fscrypt_completion_result ecr = { \
COMPLETION_INITIALIZER((ecr).completion), 0 }
COMPLETION_INITIALIZER_ONSTACK((ecr).completion), 0 }
/* crypto.c */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册