f2fs: add MODULE_SOFTDEP to ensure crc32 is included in the initramfs
PATCH v2 1/1 f2fs: add MODULE_SOFTDEP to ensure crc32 is included in the initramfs
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 <[email protected]>
Signed-off-by Chao Yu <[email protected]>
---
v2:
- fix to use "crc32" keyword
fs/f2fs/super.c | 1 + 1 file changed, 1 insertion(+)
fs/f2fs/super.c +1 -0
@@ -4431,4 +4431,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" );
Signature · 1 line
2.29.2