Commit fe1f11d0 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by sanglipeng
Browse files

mailbox: zynq: Switch to flexible array to simplify code

stable inclusion
from stable-v5.10.180
commit 67fb57f24737ffdbd443eb176fe3fc344c93f491
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8FC2O

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=67fb57f24737ffdbd443eb176fe3fc344c93f491



--------------------------------

[ Upstream commit 043f85ce ]

Using flexible array is more straight forward. It
  - saves 1 pointer in the 'zynqmp_ipi_pdata' structure
  - saves an indirection when using this array
  - saves some LoC and avoids some always spurious pointer arithmetic

Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
Stable-dep-of: f72f805e ("mailbox: zynqmp: Fix counts of child nodes")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 63aa8e07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment