fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers
authorBen Hutchings <ben@decadent.org.uk>
Wed, 13 Apr 2016 20:48:06 +0000 (21:48 +0100)
committerYves-Alexis Perez <corsac@debian.org>
Wed, 21 Feb 2018 15:29:03 +0000 (15:29 +0000)
This helps initramfs builders and other tools to find the full
dependencies of a module.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch

fs/btrfs/super.c
fs/cifs/cifsfs.c
fs/crypto/crypto.c
fs/ext4/super.c
fs/f2fs/super.c
fs/jbd2/journal.c
fs/nfsd/nfsctl.c

index f6e111984ce28c271d4d7275eec70d3a1e22cc0a..4da0e0216a748b032ca982d0e0b3821887b446a2 100644 (file)
@@ -2493,3 +2493,4 @@ late_initcall(init_btrfs_fs);
 module_exit(exit_btrfs_fs)
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
index 87658f63b3743014333434df09192d9e43bb4645..306b8406b3d8d254a8c1b78d81725e593fef3b53 100644 (file)
@@ -1377,5 +1377,13 @@ MODULE_DESCRIPTION
     ("VFS to access servers complying with the SNIA CIFS Specification "
      "e.g. Samba and Windows");
 MODULE_VERSION(CIFS_VERSION);
+
+#ifdef CONFIG_CIFS_SMB2
+#define CIFS_SMB2_EXTRA_SOFTDEPS " crypto-aes crypto-cmac crypto-sha256"
+#else
+#define CIFS_SMB2_EXTRA_SOFTDEPS ""
+#endif
+MODULE_SOFTDEP("pre: crypto-arc4 crypto-des crypto-ecb crypto-hmac crypto-md4 crypto-md5" CIFS_SMB2_EXTRA_SOFTDEPS);
+
 module_init(init_cifs)
 module_exit(exit_cifs)
index 73de1446c8d43241f383c946ba00e62e4fbb967e..4ee1b449820c8ab25dc925d6b500ca14568811e2 100644 (file)
@@ -556,3 +556,4 @@ static void __exit fscrypt_exit(void)
 module_exit(fscrypt_exit);
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-aes crypto-ecb");
index 1f581791b39de2d0ad7a4b70095c6f6f5b1e6e26..280019f2c240e36464949143aa9569fa380c0817 100644 (file)
@@ -5690,5 +5690,13 @@ static void __exit ext4_exit_fs(void)
 MODULE_AUTHOR("Remy Card, Stephen Tweedie, Andrew Morton, Andreas Dilger, Theodore Ts'o and others");
 MODULE_DESCRIPTION("Fourth Extended Filesystem");
 MODULE_LICENSE("GPL");
+
+#ifdef CONFIG_EXT4_FS_ENCRYPTION
+#define EXT4_ENC_EXTRA_SOFTDEPS " crypto-aes crypto-ecb"
+#else
+#define EXT4_ENC_EXTRA_SOFTDEPS ""
+#endif
+MODULE_SOFTDEP("pre: crypto-crc32c" EXT4_ENC_EXTRA_SOFTDEPS);
+
 module_init(ext4_init_fs)
 module_exit(ext4_exit_fs)
index eb20b8767f3ce0a1bc60b6719ccf51c44332628b..1cc446466c5d6487fb8a4502f5bc8bc25664645e 100644 (file)
@@ -2056,3 +2056,4 @@ module_exit(exit_f2fs_fs)
 MODULE_AUTHOR("Samsung Electronics's Praesto Team");
 MODULE_DESCRIPTION("Flash Friendly File System");
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
index 7d4b557f196295d5b86a55ab157929a91364d241..a0fe3899f6c05f121f64a2e32858c587d728fde1 100644 (file)
@@ -2673,6 +2673,7 @@ static void __exit journal_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(journal_init);
 module_exit(journal_exit);
 
index 36b2af931e06d1d1a7c3dc613747a58433350811..2ecdd6f912d8111377a7df4a58158a698d2699fd 100644 (file)
@@ -1308,5 +1308,8 @@ static void __exit exit_nfsd(void)
 
 MODULE_AUTHOR("Olaf Kirch <okir@monad.swb.de>");
 MODULE_LICENSE("GPL");
+#ifdef CONFIG_NFSD_V4
+MODULE_SOFTDEP("pre: crypto-md5");
+#endif
 module_init(init_nfsd)
 module_exit(exit_nfsd)