aboutsummaryrefslogtreecommitdiffstats
path: root/block/genhd.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/genhd.c')
-rw-r--r--block/genhd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/genhd.c b/block/genhd.c
index d9de3e482d1e..32ee73c67560 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -578,7 +578,7 @@ struct gendisk *get_gendisk(dev_t devt, int *partno)
578 * RETURNS: 578 * RETURNS:
579 * Resulting block_device on success, NULL on failure. 579 * Resulting block_device on success, NULL on failure.
580 */ 580 */
581extern struct block_device *bdget_disk(struct gendisk *disk, int partno) 581struct block_device *bdget_disk(struct gendisk *disk, int partno)
582{ 582{
583 struct hd_struct *part; 583 struct hd_struct *part;
584 struct block_device *bdev = NULL; 584 struct block_device *bdev = NULL;
@@ -654,7 +654,7 @@ static void *disk_seqf_start(struct seq_file *seqf, loff_t *pos)
654 struct class_dev_iter *iter; 654 struct class_dev_iter *iter;
655 struct device *dev; 655 struct device *dev;
656 656
657 iter = kmalloc(GFP_KERNEL, sizeof(*iter)); 657 iter = kmalloc(sizeof(*iter), GFP_KERNEL);
658 if (!iter) 658 if (!iter)
659 return ERR_PTR(-ENOMEM); 659 return ERR_PTR(-ENOMEM);
660 660