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.16.12-1+rpi1^2~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c92cb56e4c6a099d0479dd93c330380c3d85da62;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 a1c54a2c787..c4cd0ef8dd7 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c @@ -2668,7 +2668,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 24a7ad80353..4ab5c15521b 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -6703,6 +6703,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/jbd2/journal.c b/fs/jbd2/journal.c index bd9ac989160..9e104c05456 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -3189,6 +3189,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 d0761ca8cb5..9f7fa397a56 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c @@ -1583,5 +1583,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)