From: Ben Hutchings Date: Wed, 13 Apr 2016 20:48:06 +0000 (+0100) Subject: fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers X-Git-Tag: archive/raspbian/5.10.70-1+rpi1^2~33 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d80bf1952cee4583e541b1b8171f0a438cd77f77;p=linux.git fs: Add MODULE_SOFTDEP declarations for hard-coded crypto drivers 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 [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 --- diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index 2663485c17c..7f53ed74605 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2597,7 +2597,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"); diff --git a/fs/ext4/super.c b/fs/ext4/super.c index 099e4afa41e..fa622849131 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -6746,6 +6746,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) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index de543168b37..9d7d5cdd7cf 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4157,5 +4157,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: crc32"); +MODULE_SOFTDEP("pre: crypto-crc32"); diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 188f79d7698..1f28b3dfd2b 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -3012,6 +3012,7 @@ static void __exit journal_exit(void) } MODULE_LICENSE("GPL"); +MODULE_SOFTDEP("pre: crypto-crc32c"); module_init(journal_init); module_exit(journal_exit); diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index 0759e589ab5..3ade4a937da 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1580,5 +1580,8 @@ static void __exit exit_nfsd(void) MODULE_AUTHOR("Olaf Kirch "); MODULE_LICENSE("GPL"); +#ifdef CONFIG_NFSD_V4 +MODULE_SOFTDEP("pre: crypto-md5"); +#endif module_init(init_nfsd) module_exit(exit_nfsd)