linux/include
Caleb Sander Mateos 67caa528ae 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: 99c1e4eb6a ("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>
2025-06-24 20:45:31 -06:00
..
acpi gcc-15: acpi: sprinkle random '__nonstring' crumbles around 2025-04-20 11:57:54 -07:00
asm-generic Core x86 updates for v6.16: 2025-05-26 16:04:17 -07:00
clocksource
crypto Revert "crypto: testmgr - Add hash export format testing" 2025-05-23 17:20:59 +08:00
cxl
drm drm/xe/ptl: Update the PTL pci id table 2025-05-22 20:54:15 -07:00
dt-bindings
hyperv
keys
kunit
kvm
linux block: Fix bvec_set_folio() for very large folios 2025-06-13 06:20:17 -06:00
math-emu
media
memory
misc
net ipsec-2025-05-21 2025-05-22 11:49:53 +02:00
pcmcia
ras
rdma
rv
scsi scsi: remove the no_highmem flag in the host 2025-05-05 13:22:39 -06:00
soc
sound ALSA: pcm: Fix race of buffer access at PCM OSS layer 2025-05-16 10:09:02 +02:00
target
trace Move the x86 page fault tracepoints to generic code, because 2025-05-26 21:18:59 -07:00
uapi ublk: fix narrowing warnings in UAPI header 2025-06-24 20:45:31 -06:00
ufs
vdso
video
xen
Kbuild