net: remove {revc,send}msg_copy_msghdr() from exports
Subsystems (4)
PATCH 1/1 net: remove {revc,send}msg_copy_msghdr() from exports
The only user of these was io_uring, and it's not using them anymore. Make them static and remove them from the socket header file.
---
recvmsg_copy_msghdr() hasn't been used in a while, sendmsg_copy_msghdr() went away in this merge window.
include/linux/socket.h +0 -7
@@ -422,13 +422,6 @@ extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,struct user_msghdr __user *umsg, struct sockaddr __user *uaddr, unsigned int flags); -extern int sendmsg_copy_msghdr (struct msghdr *msg, -struct user_msghdr __user *umsg,unsigned flags, -struct iovec **iov); -extern int recvmsg_copy_msghdr (struct msghdr *msg, -struct user_msghdr __user *umsg,unsigned flags, -struct sockaddr __user **uaddr, -struct iovec **iov);extern int __copy_msghdr (struct msghdr *kmsg,struct user_msghdr *umsg,struct sockaddr __user **save_addr);
net/socket.c +7 -7
@@ -2600,9 +2600,9 @@ static int ____sys_sendmsg(struct socket *sock, struct msghdr *msg_sys,return err; } -int sendmsg_copy_msghdr (struct msghdr *msg, -struct user_msghdr __user *umsg,unsigned flags, -struct iovec **iov) +static int sendmsg_copy_msghdr (struct msghdr *msg, +struct user_msghdr __user *umsg,unsigned flags, +struct iovec **iov) {int err;
@@ -2753,10 +2753,10 @@ SYSCALL_DEFINE4(sendmmsg, int, fd, struct mmsghdr __user *, mmsg,return __sys_sendmmsg (fd, mmsg, vlen, flags, true); } -int recvmsg_copy_msghdr (struct msghdr *msg, -struct user_msghdr __user *umsg,unsigned flags, -struct sockaddr __user **uaddr, -struct iovec **iov) +static int recvmsg_copy_msghdr (struct msghdr *msg, +struct user_msghdr __user *umsg,unsigned flags, +struct sockaddr __user **uaddr, +struct iovec **iov) {ssize_t err;
tools/perf/trace/beauty/include/linux/socket.h +0 -7
@@ -422,13 +422,6 @@ extern long __sys_recvmsg_sock(struct socket *sock, struct msghdr *msg,struct user_msghdr __user *umsg, struct sockaddr __user *uaddr, unsigned int flags); -extern int sendmsg_copy_msghdr (struct msghdr *msg, -struct user_msghdr __user *umsg,unsigned flags, -struct iovec **iov); -extern int recvmsg_copy_msghdr (struct msghdr *msg, -struct user_msghdr __user *umsg,unsigned flags, -struct sockaddr __user **uaddr, -struct iovec **iov);extern int __copy_msghdr (struct msghdr *kmsg,struct user_msghdr *umsg,struct sockaddr __user **save_addr);
Signature · 1 line
Jens Axboe
Paolo Abeni
maintainerQuoted 4 lines · Jens Axboe
The only user of these was
io_uring, and it's not using them anymore. Make them static and remove them from the socket header file.Signed-off-by Jens Axboe <[email protected]>
## Form letter - net-next-closed
The merge window for v6.9 has begun and we have already posted our pull request. Therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only.
Please repost when net-next reopens after March 25th.
RFC patches sent for review only are obviously welcome at any time.
See:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
Signature · 1 line
pw-bot: defer
Paolo Abeni
maintainerQuoted 12 lines · Paolo Abeni
Quoted 4 lines · Jens Axboe
The only user of these was
io_uring, and it's not using them anymore. Make them static and remove them from the socket header file.Signed-off-by Jens Axboe <[email protected]>## Form letter - net-next-closed
The merge window for v6.9 has begun and we have already posted our pull request. Therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only.
Quoted 6 lines
Please repost when net-next reopens after March 25th.
RFC patches sent for review only are obviously welcome at any time.
See:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
Jakub noted that waiting another cycle just to do a very safe cleanup would be a pity. I guess we can do a one-off exception here for good reason.
Cheers,
Paolo
Quoted 15 lines · Paolo Abeni
Quoted 14 lines · Paolo Abeni
Quoted 4 lines · Jens Axboe
The only user of these was
io_uring, and it's not using them anymore. Make them static and remove them from the socket header file.Signed-off-by Jens Axboe <[email protected]>## Form letter - net-next-closed
The merge window for v6.9 has begun and we have already posted our pull request. Therefore net-next is closed for new drivers, features, code refactoring and optimizations. We are currently accepting bug fixes only.
Please repost when net-next reopens after March 25th.
Quoted 8 lines
Quoted 4 lines
RFC patches sent for review only are obviously welcome at any time.
See:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycleJakub noted that waiting another cycle just to do a very safe cleanup would be a pity. I guess we can do a one-off exception here for good reason.
Thanks, seemed pretty silly to defer, and given the nature of the patch, there's no way it could've been sent "in time" anyway as the io_uring pull needed to go in first.
Besides, I would never remember to resend the cleanup and hence it would've been lost.
Signature · 1 line
Jens Axboe
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 12 Mar 2024 09:55:45 -0600 you wrote:
The only user of these was
io_uring, and it's not using them anymore. Make them static and remove them from the socket header file.Signed-off-by Jens Axboe <[email protected]>---
[...]
Here is the summary with links:
- net: remove {revc,send}msg_copy_msghdr() from exports
https://git.kernel.org/netdev/net/c/e54e09c05c00
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html