io_uring: update io_uring_buf flex array bindings

The kernel UAPI changed from a zero-length array to a flexible array in
<https://lore.kernel.org/r/20230105190507.gonna.131-kees@kernel.org>

Change-Id: Ib84ca00597e10a7a4e8b1ee15b518a835d84cdb9
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5178533
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Dennis Kempin <denniskempin@google.com>
This commit is contained in:
Daniel Verkamp 2024-01-08 13:50:18 -08:00 committed by crosvm LUCI
parent 345cefa5cd
commit 5d343a3613

View file

@ -558,7 +558,7 @@ pub struct io_uring_buf_ring {
#[repr(C)]
pub struct io_uring_buf_ring__bindgen_ty_1 {
pub __bindgen_anon_1: __BindgenUnionField<io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1>,
pub bufs: __BindgenUnionField<[io_uring_buf; 0usize]>,
pub __bindgen_anon_2: __BindgenUnionField<io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2>,
pub bindgen_union_field: [u64; 2usize],
}
#[repr(C)]
@ -569,6 +569,15 @@ pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_1 {
pub resv3: u16,
pub tail: u16,
}
#[repr(C)]
#[derive(Debug, Default)]
pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2 {
pub __empty_bufs: io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1,
pub bufs: __IncompleteArrayField<io_uring_buf>,
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct io_uring_buf_ring__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 {}
impl Default for io_uring_buf_ring__bindgen_ty_1 {
fn default() -> Self {
let mut s = ::std::mem::MaybeUninit::<Self>::uninit();