Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
c1f81466
Commit
c1f81466
authored
Aug 25, 2017
by
davidcunado-arm
Committed by
GitHub
Aug 25, 2017
Browse files
Merge pull request #1058 from alistair23/alistair/master
psci_common: Resolve GCC static analysis false positive
parents
5982fa79
5722b78c
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/psci/psci_common.c
View file @
c1f81466
...
@@ -194,8 +194,15 @@ static void psci_set_req_local_pwr_state(unsigned int pwrlvl,
...
@@ -194,8 +194,15 @@ static void psci_set_req_local_pwr_state(unsigned int pwrlvl,
unsigned
int
cpu_idx
,
unsigned
int
cpu_idx
,
plat_local_state_t
req_pwr_state
)
plat_local_state_t
req_pwr_state
)
{
{
/*
* This should never happen, we have this here to avoid
* "array subscript is above array bounds" errors in GCC.
*/
assert
(
pwrlvl
>
PSCI_CPU_PWR_LVL
);
assert
(
pwrlvl
>
PSCI_CPU_PWR_LVL
);
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
psci_req_local_pwr_states
[
pwrlvl
-
1
][
cpu_idx
]
=
req_pwr_state
;
psci_req_local_pwr_states
[
pwrlvl
-
1
][
cpu_idx
]
=
req_pwr_state
;
#pragma GCC diagnostic pop
}
}
/******************************************************************************
/******************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment