From: Chao Yu Date: Tue, 18 May 2021 01:57:54 +0000 (+0800) Subject: f2fs: add MODULE_SOFTDEP to ensure crc32 is included in the initramfs X-Git-Tag: v4.19.198~40 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6f8ab706a62e2e2cf3c390b0c46f0bedbb8b1028;p=users%2Fdwmw2%2Flinux.git f2fs: add MODULE_SOFTDEP to ensure crc32 is included in the initramfs [ Upstream commit 0dd571785d61528d62cdd8aa49d76bc6085152fe ] As marcosfrm reported in bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=213089 Initramfs generators rely on "pre" softdeps (and "depends") to include additional required modules. F2FS does not declare "pre: crc32" softdep. Then every generator (dracut, mkinitcpio...) has to maintain a hardcoded list for this purpose. Hence let's use MODULE_SOFTDEP("pre: crc32") in f2fs code. Fixes: 43b6573bac95 ("f2fs: use cryptoapi crc32 functions") Reported-by: marcosfrm Signed-off-by: Chao Yu Signed-off-by: Jaegeuk Kim Signed-off-by: Sasha Levin --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 161ce0eb8891a..89fc8a4ce1497 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -3373,4 +3373,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");