Re: [PATCH net v2] net/socket: remove unused do_sock_{set,get}sockopt() exports

Eric Dumazet <[email protected]>
Newsgroups org.kernel.vger.netdev,org.kernel.vger.linux-kernel
Message-ID <CANn89iJku1MgH+NRPQ7s4+9d5XQ8vjKD1bBLM-VmaA=BC1Yr5A@mail.gmail.com>
On Fri, Aug 21, 2026 at 10:29 AM Breno Leitao <[email protected]> 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 exports.
>
> Fixes: 1406245c2945 ("net/socket: Break down __sys_setsockopt")
> Fixes: 0b05b0cd78c9 ("net/socket: Break down __sys_getsockopt")
> Suggested-by: Christoph Hellwig <[email protected]>
> Link: https://lore.kernel.org/all/[email protected]/
> Signed-off-by: Breno Leitao <[email protected]>

Reviewed-by: Eric Dumazet <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.