diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2025-03-14 11:30:54 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2025-03-18 01:32:15 +0300 |
commit | 0176188220a7822b7a5f57f971d8af291d05e98c (patch) | |
tree | 0788d1200aa3d5f008f6f85db453f4202f17057a /drivers/fpga/xilinx-spi.c | |
parent | 6c2b833525ebce518ff7056b2700dfe3d0244d8b (diff) | |
download | linux-0176188220a7822b7a5f57f971d8af291d05e98c.tar.xz |
rtc: cros-ec: Avoid a couple of -Wflex-array-member-not-at-end warnings
Use the `DEFINE_RAW_FLEX()` helper for an on-stack definition 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/rtc/rtc-cros-ec.c:62:40: warning: structure containing a flexible array member is not at the end of another structure [-Wflex-array-member-not-at-end]
drivers/rtc/rtc-cros-ec.c:40:40: 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>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Link: https://lore.kernel.org/r/Z9PpPg06OK8ghNvm@kspp
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions