diff options
Diffstat (limited to 'block')
-rw-r--r-- | block/bsg.c | 2 | ||||
-rw-r--r-- | block/genhd.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/block/bsg.c b/block/bsg.c index 702f1316bb8f..9651ec7b87c2 100644 --- a/block/bsg.c +++ b/block/bsg.c | |||
@@ -1070,7 +1070,7 @@ EXPORT_SYMBOL_GPL(bsg_register_queue); | |||
1070 | 1070 | ||
1071 | static struct cdev bsg_cdev; | 1071 | static struct cdev bsg_cdev; |
1072 | 1072 | ||
1073 | static char *bsg_devnode(struct device *dev, mode_t *mode) | 1073 | static char *bsg_devnode(struct device *dev, umode_t *mode) |
1074 | { | 1074 | { |
1075 | return kasprintf(GFP_KERNEL, "bsg/%s", dev_name(dev)); | 1075 | return kasprintf(GFP_KERNEL, "bsg/%s", dev_name(dev)); |
1076 | } | 1076 | } |
diff --git a/block/genhd.c b/block/genhd.c index b7d1a0e42686..83e7c04015e1 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -1108,7 +1108,7 @@ struct class block_class = { | |||
1108 | .name = "block", | 1108 | .name = "block", |
1109 | }; | 1109 | }; |
1110 | 1110 | ||
1111 | static char *block_devnode(struct device *dev, mode_t *mode) | 1111 | static char *block_devnode(struct device *dev, umode_t *mode) |
1112 | { | 1112 | { |
1113 | struct gendisk *disk = dev_to_disk(dev); | 1113 | struct gendisk *disk = dev_to_disk(dev); |
1114 | 1114 | ||