LKML Archive on
help / color / mirror / Atom feed
* [PATCH] ext4: add crc32c soft dependency
@ 2018-04-28 19:50 Dmitry V. Levin
  0 siblings, 0 replies; only message in thread
From: Dmitry V. Levin @ 2018-04-28 19:50 UTC (permalink / raw)
  To: Theodore Ts'o
  Cc: Alexey Gladkov, Vitaly Chikunov, Andreas Dilger, linux-ext4,

Starting with commit a45403b51582, ext4 unconditionally requires
a crc32c provider, which broke certain mkinitrd setups.

Add a soft dependency on crc32c so that mkinitrd, dracut, and other
initrd image generators could include the required helper module.

The dependency on crc32c is quite hard but there seems to be no
mechanism to specify a dependency on an alias, so let's use this
soft dependency as a workaround.

Suggested-by: Alexey Gladkov <>
Fixes: a45403b51582 ("ext4: always initialize the crc32c checksum driver")
Signed-off-by: Dmitry V. Levin <>
 fs/ext4/super.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 185f7e6..eb104e8 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -5886,5 +5886,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_SOFTDEP("pre: crc32c");


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-04-28 19:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-28 19:50 [PATCH] ext4: add crc32c soft dependency Dmitry V. Levin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).