diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/debugfs/inode.c | 8 | ||||
-rw-r--r-- | fs/sysfs/symlink.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index 4733eab34a23..6393fd61d5c4 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <linux/magic.h> | 28 | #include <linux/magic.h> |
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | 30 | ||
31 | #define DEBUGFS_DEFAULT_MODE 0755 | 31 | #define DEBUGFS_DEFAULT_MODE 0700 |
32 | 32 | ||
33 | static struct vfsmount *debugfs_mount; | 33 | static struct vfsmount *debugfs_mount; |
34 | static int debugfs_mount_count; | 34 | static int debugfs_mount_count; |
@@ -291,9 +291,9 @@ static struct file_system_type debug_fs_type = { | |||
291 | .kill_sb = kill_litter_super, | 291 | .kill_sb = kill_litter_super, |
292 | }; | 292 | }; |
293 | 293 | ||
294 | struct dentry *__create_file(const char *name, umode_t mode, | 294 | static struct dentry *__create_file(const char *name, umode_t mode, |
295 | struct dentry *parent, void *data, | 295 | struct dentry *parent, void *data, |
296 | const struct file_operations *fops) | 296 | const struct file_operations *fops) |
297 | { | 297 | { |
298 | struct dentry *dentry = NULL; | 298 | struct dentry *dentry = NULL; |
299 | int error; | 299 | int error; |
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c index a7ac78f8e67a..3c9eb5624f5e 100644 --- a/fs/sysfs/symlink.c +++ b/fs/sysfs/symlink.c | |||
@@ -113,7 +113,7 @@ int sysfs_create_link(struct kobject *kobj, struct kobject *target, | |||
113 | * @target: object we're pointing to. | 113 | * @target: object we're pointing to. |
114 | * @name: name of the symlink. | 114 | * @name: name of the symlink. |
115 | * | 115 | * |
116 | * This function does the same as sysf_create_link(), but it | 116 | * This function does the same as sysfs_create_link(), but it |
117 | * doesn't warn if the link already exists. | 117 | * doesn't warn if the link already exists. |
118 | */ | 118 | */ |
119 | int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, | 119 | int sysfs_create_link_nowarn(struct kobject *kobj, struct kobject *target, |