aboutsummaryrefslogtreecommitdiffstats
path: root/init/do_mounts.c
diff options
context:
space:
mode:
Diffstat (limited to 'init/do_mounts.c')
-rw-r--r--init/do_mounts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/do_mounts.c b/init/do_mounts.c
index b7fc83994f39..42db0551c3aa 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -58,6 +58,7 @@ static int __init readwrite(char *str)
58__setup("ro", readonly); 58__setup("ro", readonly);
59__setup("rw", readwrite); 59__setup("rw", readwrite);
60 60
61#ifdef CONFIG_BLOCK
61/** 62/**
62 * match_dev_by_uuid - callback for finding a partition using its uuid 63 * match_dev_by_uuid - callback for finding a partition using its uuid
63 * @dev: device passed in by the caller 64 * @dev: device passed in by the caller
@@ -111,6 +112,7 @@ static dev_t __init devt_from_partuuid(char *uuid_str)
111done: 112done:
112 return res; 113 return res;
113} 114}
115#endif
114 116
115/* 117/*
116 * Convert a name into device number. We accept the following variants: 118 * Convert a name into device number. We accept the following variants:
@@ -138,6 +140,7 @@ dev_t name_to_dev_t(char *name)
138 dev_t res = 0; 140 dev_t res = 0;
139 int part; 141 int part;
140 142
143#ifdef CONFIG_BLOCK
141 if (strncmp(name, "PARTUUID=", 9) == 0) { 144 if (strncmp(name, "PARTUUID=", 9) == 0) {
142 name += 9; 145 name += 9;
143 if (strlen(name) != 36) 146 if (strlen(name) != 36)
@@ -147,6 +150,7 @@ dev_t name_to_dev_t(char *name)
147 goto fail; 150 goto fail;
148 goto done; 151 goto done;
149 } 152 }
153#endif
150 154
151 if (strncmp(name, "/dev/", 5) != 0) { 155 if (strncmp(name, "/dev/", 5) != 0) {
152 unsigned maj, min; 156 unsigned maj, min;