[PATCH 1/1] ARM: OMAP: Kill warning in CPUIDLE code with !CONFIG_SMP

Tony Lindgren tony at atomide.com
Fri Feb 21 18:17:15 EST 2014


* Mugunthan V N <mugunthanvnm at ti.com> [140216 23:56]:
> From: Santosh Shilimkar <santosh.shilimkar at ti.com>
> 
> for non SMP build, NR_CPUS is 1 and hence the code complains with below
> warnings.
> 
> arch/arm/mach-omap2/cpuidle44xx.c:207:8: warning: array subscript is above array bounds [-Warray-bounds]
> arch/arm/mach-omap2/cpuidle44xx.c:212:11: warning: array subscript is above array bounds [-Warray-bounds]
> 
> Kill it by making array size fixed.
> 
> Acked-by: Nishanth Menon <nm at ti.com>
> Signed-off-by: Santosh Shilimkar <santosh.shilimkar at ti.com>
> Signed-off-by: Mugunthan V N <mugunthanvnm at ti.com>

Thanks applying into omap-for-v3.14/fixes.

Tony



More information about the linux-arm-kernel mailing list