diff mbox series

[for-next] io_uring: use proper type for io_sr_msg msg_flags

Message ID c057314898a95409bf96e3ffdcdce01288436608.1656592432.git.asml.silence@gmail.com (mailing list archive)
State New
Headers show
Series [for-next] io_uring: use proper type for io_sr_msg msg_flags | expand

Commit Message

Pavel Begunkov June 30, 2022, 2:10 p.m. UTC
Network takes unsigned for msg flags, so use the right type for
struct io_sr_msg::msg_flags. And move io_sr_msg::flags to get rid of
internal padding, we'll need more space in the future.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
---
 io_uring/net.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/io_uring/net.c b/io_uring/net.c
index 19a805c3814c..72c81d973651 100644
--- a/io_uring/net.c
+++ b/io_uring/net.c
@@ -52,10 +52,10 @@  struct io_sr_msg {
 		struct user_msghdr __user	*umsg;
 		void __user			*buf;
 	};
-	int				msg_flags;
+	unsigned			msg_flags;
+	unsigned			flags;
 	size_t				len;
 	size_t				done_io;
-	unsigned int			flags;
 };
 
 #define IO_APOLL_MULTI_POLLED (REQ_F_APOLL_MULTISHOT | REQ_F_POLLED)