From f36c22c56d752e345a4f9df3697571baef5c1da6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 18 Oct 2023 08:32:07 -0600 Subject: [PATCH] test/no-mmap-inval: fix warning on 32-bit builds Cast the address to uintptr_t first. Fixes: 794d756c36c6 ("test/no-mmap-inval: add test case for invalid SQ ring address") Signed-off-by: Jens Axboe --- test/no-mmap-inval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/no-mmap-inval.c b/test/no-mmap-inval.c index bf4831742..063d12f1c 100644 --- a/test/no-mmap-inval.c +++ b/test/no-mmap-inval.c @@ -24,7 +24,7 @@ int main(int argc, char *argv[]) if (argc > 1) return T_EXIT_SKIP; - p.cq_off.user_addr = (unsigned long long) valloc(8192); + p.cq_off.user_addr = (unsigned long long) (uintptr_t) valloc(8192); ret = io_uring_setup(2, &p); if (ret != -EFAULT) {