summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlex Shi <alex.shi@linaro.org>2014-07-16 19:21:56 +0800
committerOlof Johansson <olof@lixom.net>2014-08-31 10:22:10 -0700
commite160cc17688cc6f24211cbc2e2a6e872e08dd4d6 (patch)
treee56d73d325a766d69f433460a34157116e58491e /include
parent98fd1508363a3e717f480795d8030430c298508a (diff)
downloadlinux-e160cc17688cc6f24211cbc2e2a6e872e08dd4d6.tar.bz2
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 <alex.shi@linaro.org> Acked-by: Pawel Moll <pawel.moll@arm.com> Acked-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions