On 6/12/26 6:09 PM, Octavian Purdila 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. > > 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 243662af1af73..067e745f9ef53 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(iov_iter_restore);
I don't have a problem exporting this to modules, but any new export should be _GPL. So please change it to that. -- Jens Axboe

