Skip to content

Commit

Permalink
fault-inject: export fault injection functions
Browse files Browse the repository at this point in the history
Export symbols should_fail() and fault_create_debugfs_attr() in order
to let modules utilize the fault injection framework.

Signed-off-by: Per Forlin <[email protected]>
Acked-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 97e4ba6 commit df87ecb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fault-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ bool should_fail(struct fault_attr *attr, ssize_t size)

return true;
}
EXPORT_SYMBOL_GPL(should_fail);

#ifdef CONFIG_FAULT_INJECTION_DEBUG_FS

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

return ERR_PTR(-ENOMEM);
}
EXPORT_SYMBOL_GPL(fault_create_debugfs_attr);

#endif /* CONFIG_FAULT_INJECTION_DEBUG_FS */

0 comments on commit df87ecb

Please sign in to comment.