]> Gentwo Git Trees - linux/.git/commit
chtls: Avoid -Wflex-array-member-not-at-end warning
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 24 Nov 2025 09:42:08 +0000 (18:42 +0900)
committerJakub Kicinski <kuba@kernel.org>
Wed, 26 Nov 2025 03:25:24 +0000 (19:25 -0800)
commitd696c73716147cb3158f1da1b89d7e75af3aa285
tree98989680e149404e1b84a9d237bf5e2d29961606
parent864f3eda0034a2a7421cb5daf045e9d2ca8b6aae
chtls: Avoid -Wflex-array-member-not-at-end warning

-Wflex-array-member-not-at-end was introduced in GCC-14, and we are
getting ready to enable it, globally.

Use the `DEFINE_RAW_FLEX()` helper for on-stack definitions of
a flexible structure where the size of the flexible-array member
is known at compile-time, and refactor the rest of the code,
accordingly.

So, with these changes, fix the following warning:

drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c:163:36: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://patch.msgid.link/aSQocKoJGkN0wzEj@kspp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/chelsio/inline_crypto/chtls/chtls_io.c