diff options
author | Bernhard Rosenkränzer <bero@lindev.ch> | 2017-11-10 15:52:21 +0100 |
---|---|---|
committer | Kostya Porotchkin <kostap@marvell.com> | 2018-02-04 14:37:12 +0200 |
commit | c96ec59f8b819123a06e1839ab5578030cf263b0 (patch) | |
tree | 1593b32e5b863d8b7bcc01723b3587e980fef47a | |
parent | 84c1c1d7b8df7bf45d59d1585ad2588bdbbd047b (diff) |
Fix dimensions of psci_req_local_pwr_states
Wrong array size cause compilation error when using GCC 7.2:
lib/psci/psci_common.c: In function ‘psci_do_state_coordination’:
lib/psci/psci_common.c:220:27: error: array subscript is above array bounds [-Werror=array-bounds]
psci_req_local_pwr_states[pwrlvl - 1][cpu_idx] = req_pwr_state;
Change-Id: I5dc189e9624a3773e6f10d56d949d66c18c98206
Signed-off-by: Bernhard Rosenkränzer <bero@lindev.ch>
Reviewed-on: http://vgitil04.il.marvell.com:8080/49631
Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Reviewed-by: Nadav Haklai <nadavh@marvell.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
-rw-r--r-- | lib/psci/psci_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psci/psci_common.c b/lib/psci/psci_common.c index 68cdd6eb..aa6dbb51 100644 --- a/lib/psci/psci_common.c +++ b/lib/psci/psci_common.c @@ -62,7 +62,7 @@ const spd_pm_ops_t *psci_spd_pm; * the cache thrashing can be avoided. */ static plat_local_state_t - psci_req_local_pwr_states[PLAT_MAX_PWR_LVL][PLATFORM_CORE_COUNT]; + psci_req_local_pwr_states[PLAT_MAX_PWR_LVL+1][PLATFORM_CORE_COUNT]; /******************************************************************************* |