From: Christoph Hellwig <hch@lst.de>
Date: Wed, 1 Jul 2020 10:59:40 +0200
Subject: [PATCH] block: tidy up a warning in bio_check_ro
References: bsc#1175995,jsc#SLE-15608
Git-commit: c8178674608679c8146235abb0be4e2c3a86f409
Patch-mainline: v5.9-rc1
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>
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
block/blk-core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/block/blk-core.c b/block/blk-core.c
index c58ee2c9fd16..ef83448b1567 100644
--- a/block/blk-core.c
+++ b/block/blk-core.c
@@ -832,8 +832,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;
--
2.16.4