-
Notifications
You must be signed in to change notification settings - Fork 425
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
io_uring: work aroung struct io_uring_rsrc_register field name change
resv field has been renamed to flags in Linux commit v5.19-rc1~251^2~20, provide a shim to support old decoding syntax. * configure.ac (AC_CHECK_TYPES): Add struct io_uring_rsrc_register and struct io_uring_rsrc_register.resv checks. * src/io_uring.c [HAVE_STRUCT_IO_URING_RSRC_REGISTER_RESV] (RESV): Define as resv. [!HAVE_STRUCT_IO_URING_RSRC_REGISTER_RESV] (RESV): Define as flags. (print_io_uring_register_rsrc): Use RESV instead of resv; print "resv" field name explicitly and use PRINT_VAL_X instead of PRINT_FIELD_X. * tests/io_uring_register.c [HAVE_STRUCT_IO_URING_RSRC_REGISTER_RESV] (RESV): Define as resv. [!HAVE_STRUCT_IO_URING_RSRC_REGISTER_RESV] (RESV): Define as flags. (main): Use RESV to access struct io_uring_rsrc_register.resv field.
- Loading branch information
Showing
3 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters