]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2024 14:04:54 +0000 (16:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2024 14:04:54 +0000 (16:04 +0200)
added patches:
block-use-the-right-type-for-stub-rq_integrity_vec.patch

queue-6.10/block-use-the-right-type-for-stub-rq_integrity_vec.patch [new file with mode: 0644]
queue-6.10/series

diff --git a/queue-6.10/block-use-the-right-type-for-stub-rq_integrity_vec.patch b/queue-6.10/block-use-the-right-type-for-stub-rq_integrity_vec.patch
new file mode 100644 (file)
index 0000000..2622b34
--- /dev/null
@@ -0,0 +1,31 @@
+From 69b6517687a4b1fb250bd8c9c193a0a304c8ba17 Mon Sep 17 00:00:00 2001
+From: Jens Axboe <axboe@kernel.dk>
+Date: Wed, 26 Jun 2024 19:01:58 -0600
+Subject: block: use the right type for stub rq_integrity_vec()
+
+From: Jens Axboe <axboe@kernel.dk>
+
+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 |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/linux/blk-integrity.h
++++ b/include/linux/blk-integrity.h
+@@ -166,7 +166,7 @@ static inline int blk_integrity_rq(struc
+       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){ };
index 38dee54ae9fa69fc7aa0748a50b8da7d68d7130c..e800e63a9cabfe91454e70629f182edd9ffc0c1b 100644 (file)
@@ -247,3 +247,4 @@ drm-mgag200-bind-i2c-lifetime-to-drm-device.patch
 drm-radeon-remove-__counted_by-from-statearray.states.patch
 mptcp-fully-established-after-add_addr-echo-on-mpj.patch
 mptcp-pm-deny-endp-with-signal-subflow-port.patch
+block-use-the-right-type-for-stub-rq_integrity_vec.patch