Re: [PATCH][next] tls: Avoid -Wflex-array-member-not-at-end warning

2025-09-23 Thread Gustavo A. R. Silva
If this (flex array) is not going to be needed in the future, I'm happy to remove it. :) I don't see what we'd use it for, aead_request.__ctx contains private data from the crypto code (all accesses seem to be through aead_request_ctx defined in include/crypto/internal/aead.h, see also the

Re: [PATCH][next] tls: Avoid -Wflex-array-member-not-at-end warning

2025-09-23 Thread Gustavo A. R. Silva
On 9/22/25 17:21, Sabrina Dubroca wrote: 2025-09-22, 16:39:20 +0200, Gustavo A. R. Silva wrote: -Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Use the new TRAILING_OVERLAP() helper to fix the following warning: net/tls/tls.h:131:29:

[PATCH][next] tls: Avoid -Wflex-array-member-not-at-end warning

2025-09-22 Thread Gustavo A. R. Silva
-Wflex-array-member-not-at-end was introduced in GCC-14, and we are getting ready to enable it, globally. Use the new TRAILING_OVERLAP() helper to fix the following warning: net/tls/tls.h:131:29: warning: structure containing a flexible array member is not at the end of another structure [-Wflex