Skip to content

Commit 43cefd1

Browse files
chaseyugregkh
authored andcommitted
f2fs: add MODULE_SOFTDEP to ensure crc32 is included in the initramfs
[ Upstream commit 0dd5717 ] 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: 43b6573 ("f2fs: use cryptoapi crc32 functions") Reported-by: marcosfrm <marcosfrm@gmail.com> Signed-off-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 74569cb commit 43cefd1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎fs/f2fs/super.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4122,4 +4122,5 @@ module_exit(exit_f2fs_fs)
41224122
MODULE_AUTHOR("Samsung Electronics's Praesto Team");
41234123
MODULE_DESCRIPTION("Flash Friendly File System");
41244124
MODULE_LICENSE("GPL");
4125+
MODULE_SOFTDEP("pre: crc32");
41254126

0 commit comments

Comments
 (0)