diff options
author | 2025-03-28 13:42:29 -0600 | |
---|---|---|
committer | 2025-03-29 05:56:36 -0600 | |
commit | 9a45714fc51321ea8f5e5567f70e06753a848f62 (patch) | |
tree | 65d9f4aae0ae3679f92a6fdda3ff30bcd0529660 /scripts/lib/kdoc/kdoc_output.py | |
parent | io_uring: don't pass ctx to tw add remote helper (diff) | |
download | linux-rng-9a45714fc51321ea8f5e5567f70e06753a848f62.tar.xz linux-rng-9a45714fc51321ea8f5e5567f70e06753a848f62.zip |
ublk: specify io_cmd_buf pointer type
io_cmd_buf points to an array of ublksrv_io_desc structs but its type is
char *. Indexing the array requires an explicit multiplication and cast.
The compiler also can't check the pointer types.
Change io_cmd_buf's type to struct ublksrv_io_desc * so it can be
indexed directly and the compiler can type-check the code.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20250328194230.2726862-2-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions