[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1] aio-posix: fix build failure io_uring 2.2
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v1] aio-posix: fix build failure io_uring 2.2 |
Date: |
Tue, 22 Feb 2022 08:46:26 +0000 |
On Mon, Feb 21, 2022 at 03:54:57PM +0000, Peter Maydell wrote:
> On Mon, 21 Feb 2022 at 15:02, Stefan Hajnoczi <stefanha@redhat.com> wrote:
> > So the QEMU add_poll_remove_sqe() function would do:
> >
> > io_uring_prep_poll_remove(sqe, (__u64)(uintptr_t)node);
>
> __u64 is a linux-kernel-ism -- we should use uint64_t, I think.
<liburing.h> and QEMU's util/fdmon-io_uring.c are Linux-only. I think
it's fine to use __u64 here exactly as defined in the liburing API.
Stefan
signature.asc
Description: PGP signature