public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH for-next] io_uring: use proper type for io_sr_msg msg_flags
@ 2022-06-30 14:10 Pavel Begunkov
  0 siblings, 0 replies; only message in thread
From: Pavel Begunkov @ 2022-06-30 14:10 UTC (permalink / raw)
  To: io-uring; +Cc: Jens Axboe, asml.silence

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 <[email protected]>
---
 io_uring/net.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)
-- 
2.36.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-30 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-30 14:10 [PATCH for-next] io_uring: use proper type for io_sr_msg msg_flags Pavel Begunkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox