Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: genhd.h cleanup patch

In include/linux/genhd.h: Line 335 has a comment that needs to be updated from: /* drivers/block/ll_rw_blk.c */ to /* block/blk-core.c */. Also as of kernel 2.6.16, the function definition for get_blkdev_list was removed from block/genhd.c but the function declaration is still present on line 339. This patch addresses both those fixes, by updating the comment and removing the declaration.

Signed-off-by: Petros Koutoupis <pkoutoupis@hydrasystemsllc.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>

authored by

Petros Koutoupis and committed by
Jens Axboe
d3992286 6d2a78e7

+1 -2
+1 -2
include/linux/genhd.h
··· 333 333 part_to_disk(part)->part0.in_flight--; 334 334 } 335 335 336 - /* drivers/block/ll_rw_blk.c */ 336 + /* block/blk-core.c */ 337 337 extern void part_round_stats(int cpu, struct hd_struct *part); 338 338 339 339 /* block/genhd.c */ 340 - extern int get_blkdev_list(char *, int); 341 340 extern void add_disk(struct gendisk *disk); 342 341 extern void del_gendisk(struct gendisk *gp); 343 342 extern void unlink_gendisk(struct gendisk *gp);