Skip to content

Commit df87ecb

Browse files
perforcjb
authored andcommitted
fault-inject: export fault injection functions
Export symbols should_fail() and fault_create_debugfs_attr() in order to let modules utilize the fault injection framework. Signed-off-by: Per Forlin <per.forlin@linaro.org> Acked-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent 97e4ba6 commit df87ecb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎lib/fault-inject.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ bool should_fail(struct fault_attr *attr, ssize_t size)
130130

131131
return true;
132132
}
133+
EXPORT_SYMBOL_GPL(should_fail);
133134

134135
#ifdef CONFIG_FAULT_INJECTION_DEBUG_FS
135136

@@ -243,5 +244,6 @@ struct dentry *fault_create_debugfs_attr(const char *name,
243244

244245
return ERR_PTR(-ENOMEM);
245246
}
247+
EXPORT_SYMBOL_GPL(fault_create_debugfs_attr);
246248

247249
#endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */

0 commit comments

Comments
 (0)