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>
Thu, 26 Sep 2019 12:19:06 +0000 (13:19 +0100)
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/crypto/crypto.c
fs/ext4/super.c
fs/f2fs/super.c
fs/jbd2/journal.c
fs/nfsd/nfsctl.c

index 0645ec428b4f5b81a7de982f78182c8aa3362337..153e30c2238c690a72bd63205ce9736a38d5d191 100644 (file)
@@ -2466,3 +2466,4 @@ late_initcall(init_btrfs_fs);
 module_exit(exit_btrfs_fs)
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
index 6f753198eeef3f9267d971e44a86ba38806cb961..5eaec5dddbadb71d6d0daefd022173fbee877ccd 100644 (file)
@@ -501,3 +501,4 @@ static void __exit fscrypt_exit(void)
 module_exit(fscrypt_exit);
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-aes crypto-ecb");
index 4079605d437ae7c34cce2f2073cac5d25a8997c5..7947da6c00440a056aba3bea247e3c9042db913b 100644 (file)
@@ -6160,6 +6160,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 4b47ac994daf5985b6c327be63135bd3ce6c649c..960d0e3ecf8be48b330351b57885ef08074bd587 100644 (file)
@@ -3685,4 +3685,5 @@ 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 e0382067c82468038b652e6022784260da6c59e4..9aa8ba3d577c767fb96f76b81e108da18d2c84b7 100644 (file)
@@ -2731,6 +2731,7 @@ static void __exit journal_exit(void)
 }
 
 MODULE_LICENSE("GPL");
+MODULE_SOFTDEP("pre: crypto-crc32c");
 module_init(journal_init);
 module_exit(journal_exit);
 
index 62c58cfeb8d899711b1b98a552c4017e909a4c62..bbe45048f9e608af57bf1e1532c81ae6dad3d081 100644 (file)
@@ -1343,5 +1343,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)