Re: [PATCH v2] selftests/io_uring: cast optval through uintptr_t in mini_liburing.h
From: Jens Axboe
Date: Wed Nov 04 2026 - 10:16:03 EST
On Wed, 04 Nov 2026 09:46:23 -0500, Sasha Levin wrote:
> 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.
>
> [...]
Applied, thanks!
[1/1] selftests/io_uring: cast optval through uintptr_t in mini_liburing.h
commit: 699e7ba5915c8b2c76e257e157464f2bfe7ab8bb
Best regards,
--
Jens Axboe