Gustavo A. R. Silva
a26c23e0d6
KEYS: 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 new TRAILING_OVERLAP() helper to fix the following warning:
crypto/asymmetric_keys/restrict.c:20:34: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
This helper creates a union between a flexible-array member (FAM) and a
set of MEMBERS that would otherwise follow it.
This overlays the trailing MEMBER unsigned char data[10]; onto the FAM
struct asymmetric_key_id::data[], while keeping the FAM and the start
of MEMBER aligned.
The static_assert() ensures this alignment remains, and it's
intentionally placed inmediately after the corresponding structures --no
blank line in between.
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org >
Reviewed-by: Ignat Korchagin <ignat@cloudflare.com >
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au >
2025-11-22 10:04:50 +08:00
..
2025-11-22 10:04:50 +08:00
2025-07-09 22:57:54 -07:00
2025-07-18 20:52:00 +10:00
2025-09-20 20:21:03 +08:00
2025-05-05 18:20:45 +08:00
2025-05-05 18:20:44 +08:00
2025-10-31 17:43:56 +08:00
2025-05-05 18:20:44 +08:00
2023-05-24 18:12:33 +08:00
2023-05-24 18:12:33 +08:00
2023-05-24 18:12:33 +08:00
2025-05-05 18:20:44 +08:00
2022-12-02 18:12:40 +08:00
2025-10-17 16:03:57 +08:00
2025-09-21 14:22:09 -07:00
2025-04-16 15:36:24 +08:00
2025-05-19 13:48:20 +08:00
2025-05-12 13:33:14 +08:00
2025-05-12 13:32:53 +08:00
2025-10-17 16:03:57 +08:00
2025-10-17 16:03:57 +08:00
2024-05-31 17:34:56 +08:00
2025-05-05 18:20:44 +08:00
2025-09-20 20:21:04 +08:00
2025-05-23 19:25:47 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-10-17 16:03:58 +08:00
2025-05-12 13:32:53 +08:00
2025-05-05 18:20:44 +08:00
2022-12-02 18:12:40 +08:00
2025-05-05 18:20:44 +08:00
2025-03-02 15:19:43 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2024-05-31 17:34:56 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-08-29 09:50:19 -07:00
2024-12-02 11:34:44 -08:00
2025-05-05 18:20:44 +08:00
2025-03-15 16:21:22 +08:00
2025-06-30 09:31:56 -07:00
2025-06-30 09:31:56 -07:00
2025-09-13 12:11:06 +08:00
2025-07-18 20:52:00 +10:00
2025-05-12 13:32:53 +08:00
2025-03-21 17:39:06 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-11-06 14:31:08 +08:00
2025-05-05 18:20:44 +08:00
2025-10-17 16:10:27 +08:00
2025-05-05 18:20:44 +08:00
2025-10-17 16:03:57 +08:00
2025-05-05 18:20:44 +08:00
2024-04-12 15:07:52 +08:00
2025-02-09 18:08:12 +08:00
2025-05-05 18:20:44 +08:00
2025-04-16 15:16:21 +08:00
2025-04-16 15:16:21 +08:00
2025-05-05 18:20:44 +08:00
2025-05-12 13:32:53 +08:00
2024-04-12 15:07:52 +08:00
2025-04-16 15:16:21 +08:00
2025-10-09 15:02:35 +08:00
2025-05-05 18:20:44 +08:00
2025-10-17 16:03:57 +08:00
2025-05-12 13:32:53 +08:00
2025-05-12 13:32:53 +08:00
2025-05-05 18:20:44 +08:00
2024-04-02 10:49:38 +08:00
2025-05-05 18:20:44 +08:00
2025-06-11 10:59:45 +08:00
2025-05-19 13:48:20 +08:00
2025-05-12 13:33:14 +08:00
2025-08-30 15:43:25 +08:00
2024-10-19 08:44:30 +08:00
2025-07-18 20:52:01 +10:00
2024-10-19 08:44:30 +08:00
2025-10-17 16:03:57 +08:00
2025-05-12 13:33:14 +08:00
2025-05-05 18:20:44 +08:00
2025-04-16 15:36:24 +08:00
2025-05-05 18:20:44 +08:00
2025-05-19 13:48:20 +08:00
2025-04-16 15:36:24 +08:00
2025-09-20 20:21:03 +08:00
2025-09-20 20:21:03 +08:00
2025-09-20 20:21:03 +08:00
2025-09-20 20:21:03 +08:00
2025-10-17 16:03:57 +08:00
2025-05-05 18:20:44 +08:00
2025-09-08 09:47:38 -07:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2025-06-13 17:26:17 +08:00
2025-05-05 18:20:44 +08:00
2025-03-21 17:39:06 +08:00
2025-05-05 18:20:44 +08:00
2025-10-06 10:17:07 +08:00
2024-10-05 13:22:04 +08:00
2025-05-05 18:20:44 +08:00
2023-10-27 18:04:28 +08:00
2023-10-27 18:04:28 +08:00
2025-04-16 15:16:21 +08:00
2025-04-28 19:45:26 +08:00
2025-09-21 14:22:09 -07:00
2025-05-05 18:20:44 +08:00
2025-05-12 13:32:53 +08:00
2025-05-05 18:20:44 +08:00
2025-09-02 19:02:35 -07:00
2025-04-23 15:52:46 +08:00
2025-09-02 19:02:37 -07:00
2025-09-02 19:02:39 -07:00
2025-05-27 13:43:32 +08:00
2025-04-16 15:36:24 +08:00
2024-08-24 21:39:15 +08:00
2025-10-08 16:13:07 +08:00
2024-04-02 10:49:38 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2024-10-02 17:23:23 -04:00
2025-05-05 18:20:44 +08:00
2025-05-12 13:32:53 +08:00
2025-05-12 13:32:53 +08:00
2025-05-05 18:20:44 +08:00
2025-10-08 09:38:31 -07:00
2025-09-06 14:45:49 -07:00
2022-12-02 18:12:40 +08:00
2025-05-05 18:20:44 +08:00
2025-06-23 16:56:56 +08:00
2025-05-05 18:20:44 +08:00
2025-05-05 18:20:44 +08:00
2024-08-02 20:53:25 +08:00
2025-05-19 13:48:20 +08:00
2025-05-05 18:20:44 +08:00
2025-11-14 18:15:49 +08:00