]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
block: unexport blk_status_to_str
authorChristoph Hellwig <hch@lst.de>
Fri, 15 May 2026 04:55:33 +0000 (06:55 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 15 May 2026 14:46:45 +0000 (08:46 -0600)
Only used in core block code, so unexport and move the prototype to
blk.h.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://patch.msgid.link/20260515045547.3790129-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h
include/linux/blkdev.h

index d7de87e869944999e5b62fc5774a8c3ea6e2dd31..22af5dec112b51f5af91d562230d3d789c00fc52 100644 (file)
@@ -197,7 +197,6 @@ 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
index b998a7761faf36c0f89998ca417d172412dceb16..bf1a80493ff1c383900fee188fb129e734d90ddd 100644 (file)
@@ -49,6 +49,8 @@ struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,
                                              gfp_t flags);
 void blk_free_flush_queue(struct blk_flush_queue *q);
 
+const char *blk_status_to_str(blk_status_t status);
+
 bool __blk_mq_unfreeze_queue(struct request_queue *q, bool force_atomic);
 bool blk_queue_start_drain(struct request_queue *q);
 bool __blk_freeze_queue_start(struct request_queue *q,
index 890128cdea1ce66863c5baa36f3b336ec4550807..17270a28c66d5918ada4ffec56de85b7cb8c1546 100644 (file)
@@ -1040,7 +1040,6 @@ extern const char *blk_op_str(enum req_op 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)