add patch fix-checks-for-data-ordered-and-journal_async_commit-options
[ext4-patch-queue.git] / fscrypt-unexport-fscrypt_initialize
bloba30c4b89a5b2f567ab69f94cadea677647fdf662
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>
8 ---
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);
20         return res;
21  }
22 -EXPORT_SYMBOL(fscrypt_initialize);
24  /**
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
30 @@ -13,6 +13,9 @@
32  #include <linux/fscrypto.h>
34 +/* crypto.c */
35 +int fscrypt_initialize(void);
37  /* keyinfo.c */
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)
46  /* crypto.c */
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 *);