* [PATCH] do_mounts: Make name_to_dev_t parameter const
@ 2012-04-24 20:57 Jörn Engel
0 siblings, 0 replies; only message in thread
From: Jörn Engel @ 2012-04-24 20:57 UTC (permalink / raw)
To: Al Viro; +Cc: linux-kernel
Al, would you be a good person to take this patch?
Prevents annoying and unnecessary compiler warnings elsewhere.
Signed-off-by: Joern Engel <joern@logfs.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-04-24 23:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 20:57 [PATCH] do_mounts: Make name_to_dev_t parameter const Jörn Engel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox