Commit 6cba00eaa95c1ace1fb511f534b233ae302ccb2e
Committed by
Chris Ball
1 parent
95a2482a9b
Exists in
master
and in
6 other branches
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>
Showing 1 changed file with 2 additions and 1 deletions Side-by-side Diff
lib/fault-inject.c
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | * setup_fault_attr() is a helper function for various __setup handlers, so it |
15 | 15 | * returns 0 on error, because that is what __setup handlers do. |
16 | 16 | */ |
17 | -int __init setup_fault_attr(struct fault_attr *attr, char *str) | |
17 | +int setup_fault_attr(struct fault_attr *attr, char *str) | |
18 | 18 | { |
19 | 19 | unsigned long probability; |
20 | 20 | unsigned long interval; |
... | ... | @@ -36,6 +36,7 @@ |
36 | 36 | |
37 | 37 | return 1; |
38 | 38 | } |
39 | +EXPORT_SYMBOL_GPL(setup_fault_attr); | |
39 | 40 | |
40 | 41 | static void fail_dump(struct fault_attr *attr) |
41 | 42 | { |