From: Alex Shi Date: Wed, 16 Jul 2014 11:21:56 +0000 (+0800) Subject: vexpress/spc: fix a build warning on array bounds X-Git-Tag: omap-fixes-against-v3.17-rc3~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e160cc17688cc6f24211cbc2e2a6e872e08dd4d6;p=pandora-kernel.git 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 Acked-by: Pawel Moll Acked-by: Sudeep Holla Signed-off-by: Olof Johansson --- Reading git-diff-tree failed