diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-06-21 10:28:41 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-06-24 20:45:31 -0600 |
commit | 67caa528ae08cd05e485c0ea6aea0baaf6579b06 (patch) | |
tree | ac1c645dbb3b2baf1257c4a55155cf4e167f0722 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 5223372e672eaa576c892984b438875426d8ff2b (diff) |
ublk: fix narrowing warnings in UAPI header
When a C++ file compiled with -Wc++11-narrowing includes the UAPI header
linux/ublk_cmd.h, ublk_sqe_addr_to_auto_buf_reg()'s assignments of u64
values to u8, u16, and u32 fields result in compiler warnings. Add
explicit casts to the intended types to avoid these warnings. Drop the
unnecessary bitmasks.
Reported-by: Uday Shankar <ushankar@purestorage.com>
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Fixes: 99c1e4eb6a3f ("ublk: register buffer to local io_uring with provided buf index via UBLK_F_AUTO_BUF_REG")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20250621162842.337452-1-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions