On Mon, Feb 24, 2025 at 4:48 AM Pavel Begunkov <asml.silence@xxxxxxxxx> wrote: > > Use io_is_compat() for consistency. > > Signed-off-by: Pavel Begunkov <asml.silence@xxxxxxxxx> > --- > io_uring/waitid.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/io_uring/waitid.c b/io_uring/waitid.c > index 347b8f53efa7..4034b7e3026f 100644 > --- a/io_uring/waitid.c > +++ b/io_uring/waitid.c > @@ -78,7 +78,7 @@ static bool io_waitid_copy_si(struct io_kiocb *req, int signo) > return true; > > #ifdef CONFIG_COMPAT > - if (req->ctx->compat) > + if (io_is_compat(req->ctx)) > return io_waitid_compat_copy_si(iw, signo); > #endif Would it be possible to remove the #ifdef CONFIG_COMPAT here (and around io_waitid_compat_copy_si()), like you did in rw.c? The compiler should be able to optimize out the if (false) and the unused static function. Same comment for the remaining uses of #ifdef CONFIG_COMPAT in net.c. Best, Caleb > > -- > 2.48.1 > >