diff options
author | Dan Ehrenberg <dehrenberg@chromium.org> | 2015-02-10 18:20:49 -0500 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-04-15 12:10:18 -0400 |
commit | e6e20a7a5f3f49bfee518d5c6849107398d83912 (patch) | |
tree | 5fecd62174f58a5457d54a14fbc705d297fcd0b1 /init/do_mounts.c | |
parent | 17e149b8f73ba116e71e25930dd6f2eb3828792d (diff) |
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 'init/do_mounts.c')
-rw-r--r-- | init/do_mounts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c index eb410083e8e0..c16adfbe4ad6 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
@@ -207,7 +207,7 @@ done: | |||
207 | * bangs. | 207 | * bangs. |
208 | */ | 208 | */ |
209 | 209 | ||
210 | dev_t name_to_dev_t(char *name) | 210 | dev_t name_to_dev_t(const char *name) |
211 | { | 211 | { |
212 | char s[32]; | 212 | char s[32]; |
213 | char *p; | 213 | char *p; |
@@ -286,6 +286,7 @@ fail: | |||
286 | done: | 286 | done: |
287 | return res; | 287 | return res; |
288 | } | 288 | } |
289 | EXPORT_SYMBOL_GPL(name_to_dev_t); | ||
289 | 290 | ||
290 | static int __init root_dev_setup(char *line) | 291 | static int __init root_dev_setup(char *line) |
291 | { | 292 | { |