From: Richard Weinberger Date: Wed, 1 Feb 2017 20:32:09 +0000 (+0100) Subject: fscrypt: properly declare on-stack completion X-Git-Tag: v4.11-rc1~148^2~1 X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=commitdiff_plain;h=b14c8e6afd873cae97060272efaac376efec77a4 fscrypt: properly declare on-stack completion When a completion is declared on-stack we have to use COMPLETION_INITIALIZER_ONSTACK(). Fixes: 0b81d07790726 ("fs crypto: move per-file encryption from f2fs tree to fs/crypto") Signed-off-by: Richard Weinberger Signed-off-by: Theodore Ts'o --- diff --git a/fs/crypto/fscrypt_private.h b/fs/crypto/fscrypt_private.h index e8a229e1d45d..fdbb8af32eaf 100644 --- a/fs/crypto/fscrypt_private.h +++ b/fs/crypto/fscrypt_private.h @@ -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 */