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
..
2020-07-13 17:11:53 -07:00
2021-08-22 09:44:17 +01:00
2021-11-25 19:37:33 -08:00
2021-07-26 23:09:18 +01:00
2021-07-26 23:09:18 +01:00
2021-06-11 14:13:18 -07:00
2021-06-11 14:13:18 -07:00
2021-08-22 09:44:17 +01:00
2021-06-11 14:13:18 -07:00
2021-08-22 09:44:17 +01:00
2021-08-22 09:44:17 +01:00