diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-02-28 16:03:04 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-02-28 19:14:54 -0700 |
commit | 09fdd35162c289f354326a55d552a8858f6e8072 (patch) | |
tree | a9f2fa45459811470fdac7d493ae6944bab078bc /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0c542a69cbcd1fefad32c59cea7a80413fe60922 (diff) |
io_uring: convert cmd_to_io_kiocb() macro to function
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.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250228230305.630885-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions