diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-01-15 10:04:17 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-01-15 10:04:17 -0700 |
commit | 3be845b7aabfa948db70849951d3a8550da56ee9 (patch) | |
tree | 55a21dd6048d6a891af82c50d785db7c575a8b06 | |
parent | bd78237b06dfe51ad15ae49bb53c0259f77818ae (diff) | |
download | liburing-3be845b7aabfa948db70849951d3a8550da56ee9.tar.gz liburing-3be845b7aabfa948db70849951d3a8550da56ee9.tar.bz2 |
Update struct io_uring_files_update struct
Made a change to ensure 32-bit vs 64-bit compatability. This isn't in
a released kernel yet, so make the change now.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/include/liburing/io_uring.h | 3 | ||||
-rw-r--r-- | src/register.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h index c8158d3..c5514d6 100644 --- a/src/include/liburing/io_uring.h +++ b/src/include/liburing/io_uring.h @@ -198,7 +198,8 @@ struct io_uring_params { struct io_uring_files_update { __u32 offset; - __s32 *fds; + __u32 resv; + __aligned_u64 /* __s32 * */ fds; }; #endif diff --git a/src/register.c b/src/register.c index a8ec27a..a275b51 100644 --- a/src/register.c +++ b/src/register.c @@ -48,7 +48,7 @@ int io_uring_register_files_update(struct io_uring *ring, unsigned off, { struct io_uring_files_update up = { .offset = off, - .fds = files, + .fds = (unsigned long) files, }; int ret; |