]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
block: use the right type for stub rq_integrity_vec()
authorJens Axboe <axboe@kernel.dk>
Thu, 27 Jun 2024 01:01:58 +0000 (19:01 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 13:34:36 +0000 (15:34 +0200)
commit 69b6517687a4b1fb250bd8c9c193a0a304c8ba17 upstream.

For !CONFIG_BLK_DEV_INTEGRITY, rq_integrity_vec() wasn't updated
properly. Fix it up.

Fixes: cf546dd289e0 ("block: change rq_integrity_vec to respect the iterator")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Cc: Matthieu Baerts <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/blk-integrity.h

index d16dd24719841f415a7a84c4a804aa10e125a53f..9fc4fed9a19f82fd3d87f58aea3873ed807c6054 100644 (file)
@@ -166,7 +166,7 @@ static inline int blk_integrity_rq(struct request *rq)
        return 0;
 }
 
-static inline struct bio_vec *rq_integrity_vec(struct request *rq)
+static inline struct bio_vec rq_integrity_vec(struct request *rq)
 {
        /* the optimizer will remove all calls to this function */
        return (struct bio_vec){ };