diff options
| author | Alex Shi <[email protected]> | 2014-07-16 11:21:56 +0000 |
|---|---|---|
| committer | Olof Johansson <[email protected]> | 2014-08-31 17:22:10 +0000 |
| commit | e160cc17688cc6f24211cbc2e2a6e872e08dd4d6 (patch) | |
| tree | e56d73d325a766d69f433460a34157116e58491e /lib/assoc_array.c | |
| parent | Merge tag 'for-v3.17-rc/omap-dra72x-d74x-support-a' of git://git.kernel.org/p... (diff) | |
| download | kernel-e160cc17688cc6f24211cbc2e2a6e872e08dd4d6.tar.gz kernel-e160cc17688cc6f24211cbc2e2a6e872e08dd4d6.zip | |
vexpress/spc: fix a build warning on array bounds
With ARCH_VEXPRESS_SPC option, kernel build has the following
warning:
arch/arm/mach-vexpress/spc.c: In function ‘ve_spc_clk_init’:
arch/arm/mach-vexpress/spc.c:431:38: warning: array subscript is below array bounds [-Warray-bounds]
struct ve_spc_opp *opps = info->opps[cluster];
^
since 'cluster' maybe '-1' in UP system. This patch does a active
checking to fix this issue.
Signed-off-by: Alex Shi <[email protected]>
Acked-by: Pawel Moll <[email protected]>
Acked-by: Sudeep Holla <[email protected]>
Signed-off-by: Olof Johansson <[email protected]>
Diffstat (limited to 'lib/assoc_array.c')
0 files changed, 0 insertions, 0 deletions
