Re: [PATCH][next] RDMA/rxe: Avoid -Wflex-array-member-not-at-end warnings
From: Gustavo A. R. Silva
Date: Fri Dec 19 2025 - 00:48:45 EST
The struct rxe_recv_wqe is as below.
struct rxe_recv_wqe {
__aligned_u64 wr_id;
__u32 reserved;
__u32 padding;
struct rxe_dma_info dma;
Expand struct rxe_dma_info here.
};
But I can not find dma.sge in the above struct. Can you explain it?
To be honest, I read your original commit for several times, but I can not get it. Can you explain the MACRO TRAILING_OVERLAP? And how can it replace the following struct?
This is clearly explained in the changelog text. I think what you're
missing will be clear once you understand how nested structures
work. See my comment above.
-Gustavo