diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-02 13:37:43 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2022-04-17 15:20:43 -0400 |
commit | 95feb69a54cc72004fca7bc2cb21aefb0a4eb5df (patch) | |
tree | 97e2594ac2dffc131b1c3645b12007360dd2b028 | |
parent | 62322ed34201d07d6d51fa8947e3b32e4dc79995 (diff) |
block: Export blk_status_to_str()
Bcachefs uses this.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r-- | block/blk-core.c | 1 | ||||
-rw-r--r-- | block/blk.h | 1 | ||||
-rw-r--r-- | include/linux/blkdev.h | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 779b4a1f66ac..08e1338cbaf5 100644 --- a/block/blk-core.c +++ b/block/blk-core.c @@ -208,6 +208,7 @@ const char *blk_status_to_str(blk_status_t status) return "<null>"; return blk_errors[idx].name; } +EXPORT_SYMBOL_GPL(blk_status_to_str); /** * blk_sync_queue - cancel any pending callbacks on a queue diff --git a/block/blk.h b/block/blk.h index 8bd43b3ad33d..a4df0b1e8df0 100644 --- a/block/blk.h +++ b/block/blk.h @@ -240,7 +240,6 @@ static inline void blk_integrity_del(struct gendisk *disk) unsigned long blk_rq_timeout(unsigned long timeout); void blk_add_timer(struct request *req); -const char *blk_status_to_str(blk_status_t status); bool blk_attempt_plug_merge(struct request_queue *q, struct bio *bio, unsigned int nr_segs); diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 16b47035e4b0..241f52487d0f 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -612,6 +612,7 @@ extern const char *blk_op_str(unsigned int op); int blk_status_to_errno(blk_status_t status); blk_status_t errno_to_blk_status(int errno); +const char *blk_status_to_str(blk_status_t status); /* only poll the hardware once, don't continue until a completion was found */ #define BLK_POLL_ONESHOT (1 << 0) |