]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
do_mounts: constify name_to_dev_t parameter
authorJoern Engel <joern@logfs.org>
Wed, 20 Feb 2013 17:19:14 +0000 (09:19 -0800)
committerJoern Engel <joern@logfs.org>
Wed, 20 Feb 2013 17:19:14 +0000 (09:19 -0800)
Signed-off-by: Joern Engel <joern@logfs.org>
include/linux/mount.h
init/do_mounts.c

index d7029f4a191a093ef9294104c75756b6d3b7faee..6b5fa77d8296edbca352dd3dbdce58ab09b92b4f 100644 (file)
@@ -74,6 +74,6 @@ extern struct vfsmount *vfs_kern_mount(struct file_system_type *type,
 extern void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list);
 extern void mark_mounts_for_expiry(struct list_head *mounts);
 
-extern dev_t name_to_dev_t(char *name);
+extern dev_t name_to_dev_t(const char *name);
 
 #endif /* _LINUX_MOUNT_H */
index 1d1b6348f903c8e517567794765120d3dfa16d16..da96f85cae1881a7b33731780c407d5411eddf7c 100644 (file)
@@ -202,7 +202,7 @@ done:
  *     bangs.
  */
 
-dev_t name_to_dev_t(char *name)
+dev_t name_to_dev_t(const char *name)
 {
        char s[32];
        char *p;