From bb652c245b5b7081bb612a90f60cd59da373d049 Mon Sep 17 00:00:00 2001 From: Octavian Purdila Date: Mon, 22 Jun 2026 22:27:56 +0000 Subject: iov_iter: export iov_iter_restore Export iov_iter_restore so that it can be used by modules. This is needed by the virtio vsock transport (which can be built as a module) to restore the msg_iter state when transmission fails. Acked-by: Stefano Garzarella Signed-off-by: Octavian Purdila Message-ID: <20260622222757.2130402-2-tavip@google.com> Signed-off-by: Michael S. Tsirkin --- lib/iov_iter.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/iov_iter.c b/lib/iov_iter.c index c2484551a4e8..227c6ee69da8 100644 --- a/lib/iov_iter.c +++ b/lib/iov_iter.c @@ -1491,6 +1491,7 @@ void iov_iter_restore(struct iov_iter *i, struct iov_iter_state *state) i->__iov -= state->nr_segs - i->nr_segs; i->nr_segs = state->nr_segs; } +EXPORT_SYMBOL_FOR_MODULES(iov_iter_restore, "vmw_vsock_virtio_transport_common"); /* * Extract a list of contiguous pages from an ITER_FOLIOQ iterator. This does -- cgit