aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mount.h
diff options
context:
space:
mode:
authorDan Ehrenberg <dehrenberg@chromium.org>2015-02-10 15:20:49 -0800
committerMike Snitzer <snitzer@redhat.com>2015-04-15 12:10:18 -0400
commite6e20a7a5f3f49bfee518d5c6849107398d83912 (patch)
tree5fecd62174f58a5457d54a14fbc705d297fcd0b1 /include/linux/mount.h
parentdm: add 'use_blk_mq' module param and expose in per-device ro sysfs attr (diff)
downloadlinux-dev-e6e20a7a5f3f49bfee518d5c6849107398d83912.tar.xz
linux-dev-e6e20a7a5f3f49bfee518d5c6849107398d83912.zip
init: export name_to_dev_t and mark name argument as const
DM will switch its device lookup code to using name_to_dev_t() so it must be exported. Also, the @name argument should be marked const. Signed-off-by: Dan Ehrenberg <dehrenberg@chromium.org> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'include/linux/mount.h')
-rw-r--r--include/linux/mount.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mount.h b/include/linux/mount.h
index c2c561dc0114..bca086d62b1a 100644
--- a/include/linux/mount.h
+++ b/include/linux/mount.h
@@ -92,6 +92,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 */