Skip to content

Commit

Permalink
fault-inject: export setup_fault_attr()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Akinobu Mita <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
  • Loading branch information
perfor authored and cjb committed Oct 26, 2011
1 parent 95a2482 commit 6cba00e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fault-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* setup_fault_attr() is a helper function for various __setup handlers, so it
* returns 0 on error, because that is what __setup handlers do.
*/
int __init setup_fault_attr(struct fault_attr *attr, char *str)
int setup_fault_attr(struct fault_attr *attr, char *str)
{
unsigned long probability;
unsigned long interval;
Expand All @@ -36,6 +36,7 @@ int __init setup_fault_attr(struct fault_attr *attr, char *str)

return 1;
}
EXPORT_SYMBOL_GPL(setup_fault_attr);

static void fail_dump(struct fault_attr *attr)
{
Expand Down

0 comments on commit 6cba00e

Please sign in to comment.