diff options
| author | Gustavo A. R. Silva <[email protected]> | 2025-03-14 08:30:54 +0000 |
|---|---|---|
| committer | Alexandre Belloni <[email protected]> | 2025-03-17 22:32:15 +0000 |
| commit | 0176188220a7822b7a5f57f971d8af291d05e98c (patch) | |
| tree | 0788d1200aa3d5f008f6f85db453f4202f17057a /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | dt-bindings: rtc: pcf2127: Reference spi-peripheral-props.yaml (diff) | |
| download | kernel-0176188220a7822b7a5f57f971d8af291d05e98c.tar.gz kernel-0176188220a7822b7a5f57f971d8af291d05e98c.zip | |
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 <[email protected]>
Reviewed-by: Tzung-Bi Shih <[email protected]>
Link: https://lore.kernel.org/r/Z9PpPg06OK8ghNvm@kspp
Signed-off-by: Alexandre Belloni <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
