Re: [PATCH] io_uring: convert cmd_to_io_kiocb() macro to function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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







[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux