
On 6/13/2024 4:50 PM, Long Li wrote:
From: John Garry <john.g.garry@oracle.com>
maillist inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I9VTE3 CVE: NA
Reference: https://lore.kernel.org/all/20240326133813.3224593-1-john.g.garry@oracle.com...
--------------------------------
SNIP
static inline int rnbd_dev_get_discard_granularity(const struct rnbd_dev *dev) diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h index 50b4fd0a0687..2d6747877f7c 100644 --- a/include/linux/blkdev.h +++ b/include/linux/blkdev.h @@ -1082,9 +1082,11 @@ static inline struct bio_vec req_bvec(struct request *rq) return mp_bvec_iter_bvec(rq->bio->bi_io_vec, rq->bio->bi_iter); }
-static inline unsigned int blk_queue_get_max_sectors(struct request_queue *q, - int op) +static inline unsigned int blk_queue_get_max_sectors(struct request *rq) {
The inline function is the API for block device. I think for openEuler it is prohibited to change the API, because it will make the build of out-of-tree modules fail.