diff options
| author | Caleb Sander Mateos <[email protected]> | 2025-06-21 16:28:41 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2025-06-25 02:45:31 +0000 |
| commit | 67caa528ae08cd05e485c0ea6aea0baaf6579b06 (patch) | |
| tree | ac1c645dbb3b2baf1257c4a55155cf4e167f0722 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
| parent | selftests: ublk: don't take same backing file for more than one ublk devices (diff) | |
| download | kernel-67caa528ae08cd05e485c0ea6aea0baaf6579b06.tar.gz kernel-67caa528ae08cd05e485c0ea6aea0baaf6579b06.zip | |
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 <[email protected]>
Signed-off-by: Caleb Sander Mateos <[email protected]>
Fixes: 99c1e4eb6a3f ("ublk: register buffer to local io_uring with provided buf index via UBLK_F_AUTO_BUF_REG")
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions
