Commit 336b7e1f230912cd8df2497be8dd7be4647d8fc8
Committed by
Jens Axboe
1 parent
4cfceaf0c0
Exists in
ti-lsk-linux-4.1.y
and in
10 other branches
block: remove export for blk_queue_bio
With commit ff36ab345 ("dm: remove request-based logic from make_request_fn wrapper") DM no longer calls blk_queue_bio() directly, so remove its export. Doing so required a forward declaration in blk-core.c. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Showing 2 changed files with 3 additions and 4 deletions Side-by-side Diff
block/blk-core.c
... | ... | @@ -734,6 +734,8 @@ |
734 | 734 | } |
735 | 735 | EXPORT_SYMBOL(blk_init_queue_node); |
736 | 736 | |
737 | +static void blk_queue_bio(struct request_queue *q, struct bio *bio); | |
738 | + | |
737 | 739 | struct request_queue * |
738 | 740 | blk_init_allocated_queue(struct request_queue *q, request_fn_proc *rfn, |
739 | 741 | spinlock_t *lock) |
... | ... | @@ -1578,7 +1580,7 @@ |
1578 | 1580 | blk_rq_bio_prep(req->q, req, bio); |
1579 | 1581 | } |
1580 | 1582 | |
1581 | -void blk_queue_bio(struct request_queue *q, struct bio *bio) | |
1583 | +static void blk_queue_bio(struct request_queue *q, struct bio *bio) | |
1582 | 1584 | { |
1583 | 1585 | const bool sync = !!(bio->bi_rw & REQ_SYNC); |
1584 | 1586 | struct blk_plug *plug; |
... | ... | @@ -1686,7 +1688,6 @@ |
1686 | 1688 | spin_unlock_irq(q->queue_lock); |
1687 | 1689 | } |
1688 | 1690 | } |
1689 | -EXPORT_SYMBOL_GPL(blk_queue_bio); /* for device mapper only */ | |
1690 | 1691 | |
1691 | 1692 | /* |
1692 | 1693 | * If bio->bi_dev is a partition, remap the location |
include/linux/blkdev.h
... | ... | @@ -821,8 +821,6 @@ |
821 | 821 | extern int sg_scsi_ioctl(struct request_queue *, struct gendisk *, fmode_t, |
822 | 822 | struct scsi_ioctl_command __user *); |
823 | 823 | |
824 | -extern void blk_queue_bio(struct request_queue *q, struct bio *bio); | |
825 | - | |
826 | 824 | /* |
827 | 825 | * A queue has just exitted congestion. Note this in the global counter of |
828 | 826 | * congested queues, and wake up anyone who was waiting for requests to be |