]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
constify ksys_mount() string arguments
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 1 Jun 2019 00:09:15 +0000 (20:09 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 5 Jul 2019 02:01:59 +0000 (22:01 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/base/devtmpfs.c
fs/namespace.c
include/linux/syscalls.h

index 0dbc43068eeb3cd4658daa6a4b65b8bf6a9ea0cd..ba5c80903efec8ee4d94fec5dc6ed868cd0ee617 100644 (file)
@@ -357,8 +357,7 @@ int devtmpfs_mount(const char *mntdir)
        if (!thread)
                return 0;
 
-       err = ksys_mount("devtmpfs", (char *)mntdir, "devtmpfs", MS_SILENT,
-                        NULL);
+       err = ksys_mount("devtmpfs", mntdir, "devtmpfs", MS_SILENT, NULL);
        if (err)
                printk(KERN_INFO "devtmpfs: error mounting %i\n", err);
        else
index 2db2f4c36c509415c0b5d33a8ecece06834d3755..e272c2403014ffd9c3e6577b4e3e0e551c4637af 100644 (file)
@@ -3295,8 +3295,8 @@ struct dentry *mount_subtree(struct vfsmount *m, const char *name)
 }
 EXPORT_SYMBOL(mount_subtree);
 
-int ksys_mount(char __user *dev_name, char __user *dir_name, char __user *type,
-              unsigned long flags, void __user *data)
+int ksys_mount(const char __user *dev_name, const char __user *dir_name,
+              const char __user *type, unsigned long flags, void __user *data)
 {
        int ret;
        char *kernel_type;
index e2870fe1be5b7f7b4d0fd8fbd258c0fc5bc3b1a5..2a0ac10a6f95e8b50197533745f3b1917f99de8a 100644 (file)
@@ -1228,8 +1228,8 @@ asmlinkage long sys_ni_syscall(void);
  * the ksys_xyzyyz() functions prototyped below.
  */
 
-int ksys_mount(char __user *dev_name, char __user *dir_name, char __user *type,
-              unsigned long flags, void __user *data);
+int ksys_mount(const char __user *dev_name, const char __user *dir_name,
+              const char __user *type, unsigned long flags, void __user *data);
 int ksys_umount(char __user *name, int flags);
 int ksys_dup(unsigned int fildes);
 int ksys_chroot(const char __user *filename);