diff options
Diffstat (limited to 'lib/notifier-error-inject.c')
-rw-r--r-- | lib/notifier-error-inject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/notifier-error-inject.c b/lib/notifier-error-inject.c index 44b92cb6224f..eb4a04afea80 100644 --- a/lib/notifier-error-inject.c +++ b/lib/notifier-error-inject.c | |||
@@ -17,7 +17,7 @@ static int debugfs_errno_get(void *data, u64 *val) | |||
17 | DEFINE_SIMPLE_ATTRIBUTE(fops_errno, debugfs_errno_get, debugfs_errno_set, | 17 | DEFINE_SIMPLE_ATTRIBUTE(fops_errno, debugfs_errno_get, debugfs_errno_set, |
18 | "%lld\n"); | 18 | "%lld\n"); |
19 | 19 | ||
20 | static struct dentry *debugfs_create_errno(const char *name, mode_t mode, | 20 | static struct dentry *debugfs_create_errno(const char *name, umode_t mode, |
21 | struct dentry *parent, int *value) | 21 | struct dentry *parent, int *value) |
22 | { | 22 | { |
23 | return debugfs_create_file(name, mode, parent, value, &fops_errno); | 23 | return debugfs_create_file(name, mode, parent, value, &fops_errno); |
@@ -50,7 +50,7 @@ struct dentry *notifier_err_inject_init(const char *name, struct dentry *parent, | |||
50 | struct notifier_err_inject *err_inject, int priority) | 50 | struct notifier_err_inject *err_inject, int priority) |
51 | { | 51 | { |
52 | struct notifier_err_inject_action *action; | 52 | struct notifier_err_inject_action *action; |
53 | mode_t mode = S_IFREG | S_IRUSR | S_IWUSR; | 53 | umode_t mode = S_IFREG | S_IRUSR | S_IWUSR; |
54 | struct dentry *dir; | 54 | struct dentry *dir; |
55 | struct dentry *actions_dir; | 55 | struct dentry *actions_dir; |
56 | 56 | ||