Re: [PATCH] sparse: use force attribute for __kernel_rwf_t casts

From: Christoph Hellwig
Date: Mon May 16 2022 - 02:28:17 EST


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 {