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 <[email protected]> Signed-off-by: Octavian Purdila <[email protected]> --- lib/iov_iter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iov_iter.c b/lib/iov_iter.c index 273919b161617..f5df63961fb24 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_GPL(iov_iter_restore); /* * Extract a list of contiguous pages from an ITER_FOLIOQ iterator. This does -- 2.55.0.rc0.799.gd6f94ed593-goog

