Skip to content

Commit 6cba00e

Browse files
perforcjb
authored andcommitted
fault-inject: export setup_fault_attr()
mmc_core module needs to use setup_fault_attr() in order to set fault injection attributes during module load time. Signed-off-by: Per Forlin <per.forlin@linaro.org> Reviewed-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Chris Ball <cjb@laptop.org>
1 parent 95a2482 commit 6cba00e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎lib/fault-inject.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* setup_fault_attr() is a helper function for various __setup handlers, so it
1515
* returns 0 on error, because that is what __setup handlers do.
1616
*/
17-
int __init setup_fault_attr(struct fault_attr *attr, char *str)
17+
int setup_fault_attr(struct fault_attr *attr, char *str)
1818
{
1919
unsigned long probability;
2020
unsigned long interval;
@@ -36,6 +36,7 @@ int __init setup_fault_attr(struct fault_attr *attr, char *str)
3636

3737
return 1;
3838
}
39+
EXPORT_SYMBOL_GPL(setup_fault_attr);
3940

4041
static void fail_dump(struct fault_attr *attr)
4142
{

0 commit comments

Comments
 (0)