diff options
author | Yajun Deng <yajun.deng@linux.dev> | 2022-06-10 11:10:17 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-06-13 14:47:15 +0200 |
commit | c04245328dd7e915e21ac6395ffd218616e22754 (patch) | |
tree | e5c57e092ab7d38608e85330482d39da69278126 /include | |
parent | tcp: sk_forced_mem_schedule() optimization (diff) | |
download | linux-c04245328dd7e915e21ac6395ffd218616e22754.tar.xz linux-c04245328dd7e915e21ac6395ffd218616e22754.zip |
net: make __sys_accept4_file() static
__sys_accept4_file() isn't used outside of the file, make it static.
As the same time, move file_flags and nofile parameters into
__sys_accept4_file().
Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/socket.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/socket.h b/include/linux/socket.h index 17311ad9f9af..414b8c7bb8f7 100644 --- a/include/linux/socket.h +++ b/include/linux/socket.h @@ -428,10 +428,6 @@ extern int __sys_recvfrom(int fd, void __user *ubuf, size_t size, extern int __sys_sendto(int fd, void __user *buff, size_t len, unsigned int flags, struct sockaddr __user *addr, int addr_len); -extern int __sys_accept4_file(struct file *file, unsigned file_flags, - struct sockaddr __user *upeer_sockaddr, - int __user *upeer_addrlen, int flags, - unsigned long nofile); extern struct file *do_accept(struct file *file, unsigned file_flags, struct sockaddr __user *upeer_sockaddr, int __user *upeer_addrlen, int flags); |