fs: Add '#include <linux/module.h>' where necessary in the crypto softdep patch
This commit is contained in:
parent
315743de11
commit
e49fde3f56
|
@ -23,7 +23,15 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|||
|
||||
--- a/fs/btrfs/hash.c
|
||||
+++ b/fs/btrfs/hash.c
|
||||
@@ -44,3 +44,5 @@ u32 btrfs_crc32c(u32 crc, const void *ad
|
||||
@@ -13,6 +13,7 @@
|
||||
|
||||
#include <crypto/hash.h>
|
||||
#include <linux/err.h>
|
||||
+#include <linux/module.h>
|
||||
#include "hash.h"
|
||||
|
||||
static struct crypto_shash *tfm;
|
||||
@@ -44,3 +45,5 @@ u32 btrfs_crc32c(u32 crc, const void *ad
|
||||
|
||||
return *ctx;
|
||||
}
|
||||
|
@ -63,7 +71,15 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|||
+MODULE_SOFTDEP("pre: crypto-des crypto-ecb crypto-md4");
|
||||
--- a/fs/ext4/crypto_key.c
|
||||
+++ b/fs/ext4/crypto_key.c
|
||||
@@ -274,3 +274,5 @@ int ext4_has_encryption_key(struct inode
|
||||
@@ -10,6 +10,7 @@
|
||||
|
||||
#include <keys/encrypted-type.h>
|
||||
#include <keys/user-type.h>
|
||||
+#include <linux/module.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/scatterlist.h>
|
||||
#include <uapi/linux/keyctl.h>
|
||||
@@ -274,3 +275,5 @@ int ext4_has_encryption_key(struct inode
|
||||
|
||||
return (ei->i_crypt_info != NULL);
|
||||
}
|
||||
|
@ -82,7 +98,15 @@ Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
|
|||
MODULE_LICENSE("GPL");
|
||||
--- a/fs/f2fs/crypto_key.c
|
||||
+++ b/fs/f2fs/crypto_key.c
|
||||
@@ -252,3 +252,5 @@ int f2fs_has_encryption_key(struct inode
|
||||
@@ -11,6 +11,7 @@
|
||||
*/
|
||||
#include <keys/encrypted-type.h>
|
||||
#include <keys/user-type.h>
|
||||
+#include <linux/module.h>
|
||||
#include <linux/random.h>
|
||||
#include <linux/scatterlist.h>
|
||||
#include <uapi/linux/keyctl.h>
|
||||
@@ -252,3 +253,5 @@ int f2fs_has_encryption_key(struct inode
|
||||
|
||||
return (fi->i_crypt_info != NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue