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)
committerSalvatore Bonaccorso <carnil@debian.org>
Mon, 8 May 2023 20:16:50 +0000 (21:16 +0100)
Bug-Debian: https://bugs.debian.org/819725
Forwarded: http://mid.gmane.org/20160517133631.GF7555@decadent.org.uk

This helps initramfs builders and other tools to find the full
dependencies of a module.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
[Lukas Wunner: Forward-ported to 4.11: drop parts applied upstream]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name fs-add-module_softdep-declarations-for-hard-coded-cr.patch

fs/btrfs/super.c
fs/ext4/super.c
fs/jbd2/journal.c
fs/nfsd/nfsctl.c

index e43b16199e22b0a7289bf3ed56627d9a03405b6d..eadd556bf69635b6fd87f6ef523bb255866d0d43 100644 (file)
@@ -2843,7 +2843,7 @@ late_initcall(init_btrfs_fs);
 module_exit(exit_btrfs_fs)
 
 MODULE_LICENSE("GPL");
-MODULE_SOFTDEP("pre: crc32c");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 MODULE_SOFTDEP("pre: xxhash64");
 MODULE_SOFTDEP("pre: sha256");
 MODULE_SOFTDEP("pre: blake2b-256");
index 2528e8216c3342a9d4bdc2c06d1f0d1e1aab0e3b..5f2d32e0a90add8f2fcbe217cd63b40c84f4d43b 100644 (file)
@@ -7321,6 +7321,6 @@ 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");
-MODULE_SOFTDEP("pre: crc32c");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(ext4_init_fs)
 module_exit(ext4_exit_fs)
index 2696f43e7239f809bcc1ff7b784ea51d94fa6f99..f999c0a0733a62648ec08fb1a5c35dd3c7999047 100644 (file)
@@ -3195,6 +3195,7 @@ static void __exit journal_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(journal_init);
 module_exit(journal_exit);
 
index dc74a947a440cba3d217eb74befbaeec36e1c1cc..6ffbb030a70d07b7c0dee0e2ae6976c0c80a32f6 100644 (file)
@@ -1563,5 +1563,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)