Re: [PATCH net] net/socket: remove unused do_sock_{set,get}sockopt() exports
From: Breno Leitao
Date: Wed Aug 19 2026 - 11:08:55 EST
On Wed, Aug 19, 2026 at 04:27:58PM +0200, Christoph Hellwig wrote:
> On Wed, Aug 19, 2026 at 06:15:35AM -0700, Breno Leitao wrote:
> > do_sock_setsockopt() and do_sock_getsockopt() have been exported since
> > they were split out of the syscall handlers for io_uring to reuse.
> >
> > io_uring is the only caller outside net/socket.c, and it is never
> > modular: cmd_net.o is built under obj-$(CONFIG_NET), and both CONFIG_NET
> > and CONFIG_IO_URING are bool. The declarations in <net/sock.h> are all
> > it needs, so no module has ever been able to use these exports.
> >
> > Drop the symbol export.
>
> exports?
Ack. I will udpdate it.
> Otherwise looks good: