diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-11 11:42:01 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-10-11 20:02:04 -0400 |
commit | 808d4e3cfdcc52b19276175464f6dbca4df13b09 (patch) | |
tree | 11c319127e8c1314c1ed1a777e4284032ab5bd00 /include | |
parent | 4b2c551f77f5a0c496e2125b1d883f4b26aabf2c (diff) |
consitify do_mount() arguments
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 2 | ||||
-rw-r--r-- | include/linux/security.h | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index ec911aeea968..9baf8270f9d1 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -2075,7 +2075,7 @@ extern struct vfsmount *kern_mount_data(struct file_system_type *, void *data); | |||
2075 | extern void kern_unmount(struct vfsmount *mnt); | 2075 | extern void kern_unmount(struct vfsmount *mnt); |
2076 | extern int may_umount_tree(struct vfsmount *); | 2076 | extern int may_umount_tree(struct vfsmount *); |
2077 | extern int may_umount(struct vfsmount *); | 2077 | extern int may_umount(struct vfsmount *); |
2078 | extern long do_mount(char *, char *, char *, unsigned long, void *); | 2078 | extern long do_mount(const char *, const char *, const char *, unsigned long, void *); |
2079 | extern struct vfsmount *collect_mounts(struct path *); | 2079 | extern struct vfsmount *collect_mounts(struct path *); |
2080 | extern void drop_collected_mounts(struct vfsmount *); | 2080 | extern void drop_collected_mounts(struct vfsmount *); |
2081 | extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, | 2081 | extern int iterate_mounts(int (*)(struct vfsmount *, void *), void *, |
diff --git a/include/linux/security.h b/include/linux/security.h index 5b50c4e1a7c2..05e88bdcf7d9 100644 --- a/include/linux/security.h +++ b/include/linux/security.h | |||
@@ -1411,8 +1411,8 @@ struct security_operations { | |||
1411 | int (*sb_kern_mount) (struct super_block *sb, int flags, void *data); | 1411 | int (*sb_kern_mount) (struct super_block *sb, int flags, void *data); |
1412 | int (*sb_show_options) (struct seq_file *m, struct super_block *sb); | 1412 | int (*sb_show_options) (struct seq_file *m, struct super_block *sb); |
1413 | int (*sb_statfs) (struct dentry *dentry); | 1413 | int (*sb_statfs) (struct dentry *dentry); |
1414 | int (*sb_mount) (char *dev_name, struct path *path, | 1414 | int (*sb_mount) (const char *dev_name, struct path *path, |
1415 | char *type, unsigned long flags, void *data); | 1415 | const char *type, unsigned long flags, void *data); |
1416 | int (*sb_umount) (struct vfsmount *mnt, int flags); | 1416 | int (*sb_umount) (struct vfsmount *mnt, int flags); |
1417 | int (*sb_pivotroot) (struct path *old_path, | 1417 | int (*sb_pivotroot) (struct path *old_path, |
1418 | struct path *new_path); | 1418 | struct path *new_path); |
@@ -1694,8 +1694,8 @@ int security_sb_remount(struct super_block *sb, void *data); | |||
1694 | int security_sb_kern_mount(struct super_block *sb, int flags, void *data); | 1694 | int security_sb_kern_mount(struct super_block *sb, int flags, void *data); |
1695 | int security_sb_show_options(struct seq_file *m, struct super_block *sb); | 1695 | int security_sb_show_options(struct seq_file *m, struct super_block *sb); |
1696 | int security_sb_statfs(struct dentry *dentry); | 1696 | int security_sb_statfs(struct dentry *dentry); |
1697 | int security_sb_mount(char *dev_name, struct path *path, | 1697 | int security_sb_mount(const char *dev_name, struct path *path, |
1698 | char *type, unsigned long flags, void *data); | 1698 | const char *type, unsigned long flags, void *data); |
1699 | int security_sb_umount(struct vfsmount *mnt, int flags); | 1699 | int security_sb_umount(struct vfsmount *mnt, int flags); |
1700 | int security_sb_pivotroot(struct path *old_path, struct path *new_path); | 1700 | int security_sb_pivotroot(struct path *old_path, struct path *new_path); |
1701 | int security_sb_set_mnt_opts(struct super_block *sb, struct security_mnt_opts *opts); | 1701 | int security_sb_set_mnt_opts(struct super_block *sb, struct security_mnt_opts *opts); |
@@ -1964,8 +1964,8 @@ static inline int security_sb_statfs(struct dentry *dentry) | |||
1964 | return 0; | 1964 | return 0; |
1965 | } | 1965 | } |
1966 | 1966 | ||
1967 | static inline int security_sb_mount(char *dev_name, struct path *path, | 1967 | static inline int security_sb_mount(const char *dev_name, struct path *path, |
1968 | char *type, unsigned long flags, | 1968 | const char *type, unsigned long flags, |
1969 | void *data) | 1969 | void *data) |
1970 | { | 1970 | { |
1971 | return 0; | 1971 | return 0; |