Re: [PATCH net-next v7 1/7] vsock: constify the transport in vsock_for_each_connected_socket()

From: Michal Luczaj

Date: Mon Nov 30 2026 - 12:15:58 EST


On 11/18/26 02:54, Bobby Eshleman wrote:
> Allow const transports to be passed too. The function only compares the
> pointer against vsk->transport, which is itself const, and never writes
> through it.
>
> No functional change.

Which made me wonder: why stop here? Constify all 'static struct
vsock_transport *_transport'. I see no reason why all these transport
callbacks are writable.

I'm happy to post a patch, just making sure I haven't missed some good
reason why not to.

thanks,
Michal