Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: sun8i-ss - 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.

Move the conflicting declaration to the end of the corresponding
structure. Notice that `struct ahash_request` is a flexible structure,
this is a structure that contains a flexible-array member.

With these changes fix the following warning:

drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h:251:30: 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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Gustavo A. R. Silva and committed by
Herbert Xu
352140d3 b6f27c0a

+3 -1
+3 -1
drivers/crypto/allwinner/sun8i-ss/sun8i-ss.h
··· 248 248 struct sun8i_ss_hash_reqctx { 249 249 struct sginfo t_src[MAX_SG]; 250 250 struct sginfo t_dst[MAX_SG]; 251 - struct ahash_request fallback_req; 252 251 u32 method; 253 252 int flow; 253 + 254 + /* Must be last as it ends in a flexible-array member. */ 255 + struct ahash_request fallback_req; 254 256 }; 255 257 256 258 /*