]> git.karo-electronics.de Git - linux-beck.git/commitdiff
fscrypt: unexport fscrypt_initialize()
authorTheodore Ts'o <tytso@mit.edu>
Sun, 27 Nov 2016 01:43:09 +0000 (20:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 11 Dec 2016 21:26:08 +0000 (16:26 -0500)
The fscrypt_initalize() function isn't used outside fs/crypto, so
there's no point making it be an exported symbol.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Eric Biggers <ebiggers@google.com>
fs/crypto/crypto.c
fs/crypto/fscrypt_private.h
include/linux/fscrypto.h

index b6029785714c58d3a192aed66fc59fa086b23204..56f98f45cece4a3d560bc16c7055648822d77343 100644 (file)
@@ -540,7 +540,6 @@ fail:
        mutex_unlock(&fscrypt_init_mutex);
        return res;
 }
-EXPORT_SYMBOL(fscrypt_initialize);
 
 /**
  * fscrypt_init() - Set up for fs encryption.
index 7c31108728e4b9b5993ba117ff49889d0abbdac2..bb92f0c0961b250b655a98e9f2e11ca716129a3e 100644 (file)
@@ -13,6 +13,9 @@
 
 #include <linux/fscrypto.h>
 
+/* crypto.c */
+int fscrypt_initialize(void);
+
 /* keyinfo.c */
 extern int fscrypt_get_crypt_info(struct inode *);
 
index 2f8894f0696c261bec49529c4d9a60c5700de459..ce2ebdee6a89f1ac5cb01413b7ff2ced32f05f95 100644 (file)
@@ -244,7 +244,6 @@ static inline void fscrypt_set_d_op(struct dentry *dentry)
 #if IS_ENABLED(CONFIG_FS_ENCRYPTION)
 /* crypto.c */
 extern struct kmem_cache *fscrypt_info_cachep;
-int fscrypt_initialize(void);
 
 extern struct fscrypt_ctx *fscrypt_get_ctx(const struct inode *, gfp_t);
 extern void fscrypt_release_ctx(struct fscrypt_ctx *);