1 fscrypt: unexport fscrypt_initialize()
3 The fscrypt_initalize() function isn't used outside fs/crypto, so
4 there's no point making it be an exported symbol.
6 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
7 Reviewed-by: Eric Biggers <ebiggers@google.com>
9 fs/crypto/crypto.c | 1 -
10 fs/crypto/fscrypt_private.h | 3 +++
11 include/linux/fscrypto.h | 1 -
12 3 files changed, 3 insertions(+), 2 deletions(-)
14 diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c
15 index b6029785714c..56f98f45cece 100644
16 --- a/fs/crypto/crypto.c
17 +++ b/fs/crypto/crypto.c
18 @@ -540,7 +540,6 @@ int fscrypt_initialize(void)
19 mutex_unlock(&fscrypt_init_mutex);
22 -EXPORT_SYMBOL(fscrypt_initialize);
25 * fscrypt_init() - Set up for fs encryption.
26 diff --git a/fs/crypto/fscrypt_private.h b/fs/crypto/fscrypt_private.h
27 index 7c31108728e4..bb92f0c0961b 100644
28 --- a/fs/crypto/fscrypt_private.h
29 +++ b/fs/crypto/fscrypt_private.h
32 #include <linux/fscrypto.h>
35 +int fscrypt_initialize(void);
38 extern int fscrypt_get_crypt_info(struct inode *);
40 diff --git a/include/linux/fscrypto.h b/include/linux/fscrypto.h
41 index 2f8894f0696c..ce2ebdee6a89 100644
42 --- a/include/linux/fscrypto.h
43 +++ b/include/linux/fscrypto.h
44 @@ -244,7 +244,6 @@ static inline void fscrypt_set_d_op(struct dentry *dentry)
45 #if IS_ENABLED(CONFIG_FS_ENCRYPTION)
47 extern struct kmem_cache *fscrypt_info_cachep;
48 -int fscrypt_initialize(void);
50 extern struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *, gfp_t);
51 extern void fscrypt_release_ctx(struct fscrypt_ctx *);