diff options
| author | Jens Axboe <[email protected]> | 2024-03-12 15:55:45 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-03-14 23:48:53 +0000 |
| commit | e54e09c05c00120cbe817bdb037088035be4bd79 (patch) | |
| tree | 6b6dd06d31fbb2d7965c2a8b745bcd3c7b9d5712 /net/socket.c | |
| parent | net: txgbe: fix clk_name exceed MAX_DEV_ID limits (diff) | |
| download | kernel-e54e09c05c00120cbe817bdb037088035be4bd79.tar.gz kernel-e54e09c05c00120cbe817bdb037088035be4bd79.zip | |
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.
Signed-off-by: Jens Axboe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/socket.c')
| -rw-r--r-- | net/socket.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/net/socket.c b/net/socket.c index 7e9c8fc9a5b4..e5f3af49a8b6 100644 --- a/net/socket.c +++ b/net/socket.c @@ -2600,9 +2600,9 @@ out: 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; |
