Alex Elder cb631a6398 net: ipa: use struct_size() for the interconnect array
In review for commit 8ee7ec4890e2b ("net: ipa: embed interconnect
array in the power structure"), Jakub Kicinski suggested that a
follow-up patch use struct_size() when computing the size of the
IPA power structure, which ends with a flexible array member.

Do that.

Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Alex Elder <elder@linaro.org>
Link: https://lore.kernel.org/r/20220311162423.872645-1-elder@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2022-03-11 22:50:07 -08:00
..
2022-02-18 19:36:36 +01:00
2022-02-25 12:30:01 -08:00
2022-02-28 10:43:07 -08:00
2022-02-28 12:51:14 -08:00
2021-12-09 20:06:54 -08:00
2022-02-28 10:43:07 -08:00
2022-01-11 11:35:28 -08:00
2022-03-04 12:02:19 +00:00
2022-02-28 10:43:07 -08:00
2022-01-22 08:33:37 +02:00
2022-01-16 08:08:11 +02:00
2022-02-02 10:33:04 +05:30
2022-02-28 10:43:07 -08:00
2022-01-22 08:33:37 +02:00
2022-03-11 11:54:45 +00:00
2022-01-20 13:25:01 +02:00
2022-01-27 11:23:26 +02:00
2022-03-07 11:40:40 +00:00
2021-12-29 10:54:50 +01:00
2022-01-20 13:31:46 +02:00
2022-02-28 10:43:07 -08:00
2022-01-23 06:20:44 +02:00
2022-01-17 08:07:57 +02:00
2022-01-22 08:33:37 +02:00
2021-12-08 14:53:15 -05:00