提交 0676d7a1 编写于 作者: J Joseph Qi

io_uring: fix build warning on arm

./include/linux/socket.h:380:38: warning: 'struct file' declared inside parameter list will not be visible outside of this definition or declaration
  380 | extern int __sys_accept4_file(struct file *file, unsigned file_flags,
      |                                      ^~~~

Fixes: d7d134b7 ("net: add __sys_accept4_file() helper")
Signed-off-by: NJoseph Qi <joseph.qi@linux.alibaba.com>
Reviewed-by: NXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>
上级 7a7dc5b5
......@@ -13,6 +13,7 @@
struct pid;
struct cred;
struct socket;
struct file;
#define __sockaddr_check_size(size) \
BUILD_BUG_ON(((size) > sizeof(struct __kernel_sockaddr_storage)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册