aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/md/bcache/sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/bcache/sysfs.c b/drivers/md/bcache/sysfs.c
index 09295c07ea88..104c57cd666c 100644
--- a/drivers/md/bcache/sysfs.c
+++ b/drivers/md/bcache/sysfs.c
@@ -192,7 +192,7 @@ STORE(__cached_dev)
192{ 192{
193 struct cached_dev *dc = container_of(kobj, struct cached_dev, 193 struct cached_dev *dc = container_of(kobj, struct cached_dev,
194 disk.kobj); 194 disk.kobj);
195 unsigned v = size; 195 ssize_t v = size;
196 struct cache_set *c; 196 struct cache_set *c;
197 struct kobj_uevent_env *env; 197 struct kobj_uevent_env *env;
198 198
@@ -227,7 +227,7 @@ STORE(__cached_dev)
227 bch_cached_dev_run(dc); 227 bch_cached_dev_run(dc);
228 228
229 if (attr == &sysfs_cache_mode) { 229 if (attr == &sysfs_cache_mode) {
230 ssize_t v = bch_read_string_list(buf, bch_cache_modes + 1); 230 v = bch_read_string_list(buf, bch_cache_modes + 1);
231 231
232 if (v < 0) 232 if (v < 0)
233 return v; 233 return v;