On Thu, Jun 25, 2026 at 12:43:18PM +0200, Christian Brauner wrote: > > 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]> > > > > diff --git a/lib/iov_iter.c b/lib/iov_iter.c > > index 273919b16161..f5df63961fb2 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); > > At least only export it for the module that really needs it. For > example, see: > > EXPORT_SYMBOL_FOR_MODULES(__kernel_write, "autofs4"); > > -- > Christian Brauner <[email protected]>
Octavian, you wanna try?

