From 35e3dfff9af04ee572a4bfe36d86971e2f7950cf Mon Sep 17 00:00:00 2001 From: Joern Engel Date: Wed, 20 Feb 2013 09:19:14 -0800 Subject: [PATCH] do_mounts: constify name_to_dev_t parameter Signed-off-by: Joern Engel --- include/linux/mount.h | 2 +- init/do_mounts.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mount.h b/include/linux/mount.h index d7029f4a191a..6b5fa77d8296 100644 --- a/include/linux/mount.h +++ b/include/linux/mount.h @@ -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 */ diff --git a/init/do_mounts.c b/init/do_mounts.c index 1d1b6348f903..da96f85cae18 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -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; -- 2.39.5