Whamcloud - gitweb
LU-14552 ptlrpc: NULL pointer dereference in ptlrpc_watchdog_fire
[fs/lustre-release.git] / contrib / scripts / crypto_patches / 0007_crypto_init.patch
1 Make llcrypt_init visible outside of llcrypt.
2
3 --- a/libcfs/include/libcfs/crypto/llcrypt.h
4 +++ b/libcfs/include/libcfs/crypto/llcrypt.h
5 @@ -105,6 +105,7 @@ static inline void llcrypt_handle_d_move
6  }
7  
8  /* crypto.c */
9 +extern int __init llcrypt_init(void);
10  extern void llcrypt_enqueue_decrypt_work(struct work_struct *);
11  extern struct llcrypt_ctx *llcrypt_get_ctx(gfp_t);
12  extern void llcrypt_release_ctx(struct llcrypt_ctx *);
13 --- a/libcfs/libcfs/crypto/crypto.c
14 +++ b/libcfs/libcfs/crypto/crypto.c
15 @@ -476,7 +476,7 @@ void llcrypt_msg(const struct inode *ino
16  /**
17   * llcrypt_init() - Set up for fs encryption.
18   */
19 -static int __init llcrypt_init(void)
20 +int __init llcrypt_init(void)
21  {
22         int err = -ENOMEM;
23  
24 @@ -517,4 +517,3 @@ fail_free_queue:
25  fail:
26         return err;
27  }
28 -late_initcall(llcrypt_init)