aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPer Forlin <per.forlin@linaro.org>2011-09-13 17:03:28 -0400
committerChris Ball <cjb@laptop.org>2011-10-26 16:32:11 -0400
commit6cba00eaa95c1ace1fb511f534b233ae302ccb2e (patch)
tree2b2133f69ec6573dd6051268be5ecbf7239a5b9f /lib
parent95a2482a9baaf55a3403d2e76f2abd7c0a32298c (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/fault-inject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fault-inject.c b/lib/fault-inject.c
index 328d43357ed2..4f7554025e30 100644
--- a/lib/fault-inject.c
+++ b/lib/fault-inject.c
@@ -14,7 +14,7 @@
14 * setup_fault_attr() is a helper function for various __setup handlers, so it 14 * setup_fault_attr() is a helper function for various __setup handlers, so it
15 * returns 0 on error, because that is what __setup handlers do. 15 * returns 0 on error, because that is what __setup handlers do.
16 */ 16 */
17int __init setup_fault_attr(struct fault_attr *attr, char *str) 17int setup_fault_attr(struct fault_attr *attr, char *str)
18{ 18{
19 unsigned long probability; 19 unsigned long probability;
20 unsigned long interval; 20 unsigned long interval;
@@ -36,6 +36,7 @@ int __init setup_fault_attr(struct fault_attr *attr, char *str)
36 36
37 return 1; 37 return 1;
38} 38}
39EXPORT_SYMBOL_GPL(setup_fault_attr);
39 40
40static void fail_dump(struct fault_attr *attr) 41static void fail_dump(struct fault_attr *attr)
41{ 42{