Skip to content

Commit c817867

Browse files
Christoph Hellwigaxboe
authored andcommitted
block: tidy up a warning in bio_check_ro
The "generic_make_request: " prefix has no value, and will soon become stale. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent f695ca3 commit c817867

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎block/blk-core.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,8 +869,7 @@ static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part)
869869
return false;
870870

871871
WARN_ONCE(1,
872-
"generic_make_request: Trying to write "
873-
"to read-only block-device %s (partno %d)\n",
872+
"Trying to write to read-only block-device %s (partno %d)\n",
874873
bio_devname(bio, b), part->partno);
875874
/* Older lvm-tools actually trigger this */
876875
return false;

0 commit comments

Comments
 (0)