[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YoHu+HvaDcIpC7gI@infradead.org>
Date: Sun, 15 May 2022 23:28:08 -0700
From: Christoph Hellwig <hch@...radead.org>
To: Vasily Averin <vvs@...nvz.org>
Cc: Jens Axboe <axboe@...nel.dk>,
Pavel Begunkov <asml.silence@...il.com>, kernel@...nvz.org,
linux-kernel@...r.kernel.org, Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...hat.com>, io-uring@...r.kernel.org
Subject: Re: [PATCH] sparse: use force attribute for __kernel_rwf_t casts
Please stop sprinkling random __force casts. 95% of them are simplify
wrong, and the others need to go into properly documented helpers.
The right fixes here are thing like:
diff --git a/fs/io_uring.c b/fs/io_uring.c
index 4479013854d20..a5d8b5109d3a7 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -585,7 +585,7 @@ struct io_rw {
struct kiocb kiocb;
u64 addr;
u32 len;
- u32 flags;
+ rwf_t flags;
};
struct io_connect {
Powered by blists - more mailing lists