[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174079581845.2596794.17760767410091854418.b4-ty@kernel.dk>
Date: Fri, 28 Feb 2025 19:23:38 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Pavel Begunkov <asml.silence@...il.com>,
Caleb Sander Mateos <csander@...estorage.com>
Cc: io-uring@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] io_uring: convert cmd_to_io_kiocb() macro to function
On Fri, 28 Feb 2025 16:03:04 -0700, Caleb Sander Mateos wrote:
> The cmd_to_io_kiocb() macro applies a pointer cast to its input without
> parenthesizing it. Currently all inputs are variable names, so this has
> the intended effect. But since casts have relatively high precedence,
> the macro would apply the cast to the wrong value if the input was a
> pointer addition, for example.
>
> Turn the macro into a static inline function to ensure the pointer cast
> is applied to the full input value.
>
> [...]
Applied, thanks!
[1/1] io_uring: convert cmd_to_io_kiocb() macro to function
commit: 09fdd35162c289f354326a55d552a8858f6e8072
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists