This function is just a tiny wrapper around blk_stack_limit and has two callers. Simplify the stack a bit by open coding it in the two callers.
Showing the changes to include/linux/blkdev.h (1 of 3 files). Show all
Unified · Split
| @@ -1139,8 +1139,6 @@ extern void blk_set_default_limits(struct queue_limits *lim); · 1138 unmodified lines | ||
| 1139 | 1139 | extern void blk_set_stacking_limits(struct queue_limits *lim); |
| 1140 | 1140 | extern int blk_stack_limits(struct queue_limits *t, struct queue_limits *b, |
| 1141 | 1141 | sector_t offset); |
| 1142 | −extern int bdev_stack_limits(struct queue_limits *t, struct block_device *bdev, | |
| 1143 | − sector_t offset); | |
| 1144 | 1142 | extern void disk_stack_limits(struct gendisk *disk, struct block_device *bdev, |
| 1145 | 1143 | sector_t offset); |
| 1146 | 1144 | extern void blk_queue_stack_limits(struct request_queue *t, struct request_queue *b); |