[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20120424205740.GG20610@logfs.org>
Date: Tue, 24 Apr 2012 16:57:40 -0400
From: Jörn Engel <joern@...fs.org>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] do_mounts: Make name_to_dev_t parameter const
Al, would you be a good person to take this patch?
Prevents annoying and unnecessary compiler warnings elsewhere.
Signed-off-by: Joern Engel <joern@...fs.org>
diff --git a/include/linux/mount.h b/include/linux/mount.h
index 604f122..10d5323 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -111,6 +111,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 c0851a8..5378145 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -93,7 +93,7 @@ no_match:
*
* Returns the matching dev_t on success or 0 on failure.
*/
-static dev_t devt_from_partuuid(char *uuid_str)
+static dev_t devt_from_partuuid(const char *uuid_str)
{
dev_t res = 0;
struct device *dev = NULL;
@@ -133,7 +133,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;
--
1.7.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists