block: tidy up a warning in bio_check_ro
authorChristoph Hellwig <hch@lst.de>
Wed, 1 Jul 2020 08:59:40 +0000 (10:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 13:27:23 +0000 (07:27 -0600)
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>
block/blk-core.c

index 76cfd57..95dca74 100644 (file)
@@ -869,8 +869,7 @@ static inline bool bio_check_ro(struct bio *bio, struct hd_struct *part)
                        return false;
 
                WARN_ONCE(1,
-                      "generic_make_request: Trying to write "
-                       "to read-only block-device %s (partno %d)\n",
+                      "Trying to write to read-only block-device %s (partno %d)\n",
                        bio_devname(bio, b), part->partno);
                /* Older lvm-tools actually trigger this */
                return false;