Re: [PATCH] io_uring: convert cmd_to_io_kiocb() macro to function
From: Jens Axboe
Date: Fri Feb 28 2025 - 21:24:19 EST
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