summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/erofs/super.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/staging/erofs/super.c b/drivers/staging/erofs/super.c
index 5654cc7a5015..2109b037fa17 100644
--- a/drivers/staging/erofs/super.c
+++ b/drivers/staging/erofs/super.c
@@ -237,16 +237,18 @@ static int parse_options(struct super_block *sb, char *options)
infoln("noacl options not supported");
break;
#endif
+#ifdef CONFIG_EROFS_FAULT_INJECTION
case Opt_fault_injection:
if (args->from && match_int(args, &arg))
return -EINVAL;
-#ifdef CONFIG_EROFS_FAULT_INJECTION
erofs_build_fault_attr(EROFS_SB(sb), arg);
set_opt(EROFS_SB(sb), FAULT_INJECTION);
+ break;
#else
- infoln("FAULT_INJECTION was not selected");
-#endif
+ case Opt_fault_injection:
+ infoln("fault_injection options not supported");
break;
+#endif
default:
errln("Unrecognized mount option \"%s\" "
"or missing value", p);