summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-11-03 11:39:28 -0500
committerJens Axboe <axboe@kernel.dk>2026-11-04 07:57:44 -0700
commit3197517875fdcfae1e9b5a4dcaf35cbbd66c413c (patch)
treea090f4aff72fafee8e552f45fb8f35ee833e9ad4 /scripts
parent801bddbf1e4147a69b811c548c35a06a157941b4 (diff)
selftests: ublk: fix the build and file offsets on 32-bit
kublk puts pointers into 64-bit UAPI and SQE fields with a plain (__u64) cast. ublk builds with -Werror, so it fails to build on 32-bit architectures: batch.c:379:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] Cast through uintptr_t. kublk also passes 64-bit user copy offsets, which start at UBLKSRV_IO_BUF_OFFSET (2 GB), to pread() and pwrite(), and with glibc those are truncated to a 32-bit off_t there. Build with -D_FILE_OFFSET_BITS=64 as well. Signed-off-by: Sasha Levin <sashal@kernel.org> Reviewed-by: Ming Lei <tom.leiming@gmail.com> Link: https://patch.msgid.link/20261103163928.641519-1-sashal@kernel.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions