Files
linux/tools/include
Sasha Levin 699e7ba591 selftests/io_uring: cast optval through uintptr_t in mini_liburing.h
io_uring_prep_cmd() puts the optval pointer into the 64-bit optval field
of the SQE with a plain cast, which warns on 32-bit architectures:

  mini_liburing.h:272:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Cast through uintptr_t, and include <stdint.h> for it.

Reviewed-by: Breno Leitao <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
2026-11-04 08:06:12 -07:00
..