Re: [PATCH] vexpress/spc: fix a build warning on array bounds

2014-08-31 Thread Olof Johansson
On Thu, Aug 28, 2014 at 09:00:59PM -0700, Pawel Moll wrote: > On pi??, 2014-08-29 at 02:45 +0100, Alex Shi wrote: > > On 07/16/2014 07:28 PM, Sudeep Holla wrote: > > > > > > > > > On 16/07/14 12:21, Alex Shi wrote: > > >> With ARCH_VEXPRESS_SPC option, kernel build has the following > > >> warnin

Re: [PATCH] vexpress/spc: fix a build warning on array bounds

2014-08-28 Thread Pawel Moll
On pią, 2014-08-29 at 02:45 +0100, Alex Shi wrote: > On 07/16/2014 07:28 PM, Sudeep Holla wrote: > > > > > > On 16/07/14 12:21, Alex Shi wrote: > >> With ARCH_VEXPRESS_SPC option, kernel build has the following > >> warning: > >> > >> arch/arm/mach-vexpress/spc.c: In function ‘ve_spc_clk_init’: >

Re: [PATCH] vexpress/spc: fix a build warning on array bounds

2014-08-28 Thread Alex Shi
On 07/16/2014 07:28 PM, Sudeep Holla wrote: > > > On 16/07/14 12:21, Alex Shi wrote: >> 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

Re: [PATCH] vexpress/spc: fix a build warning on array bounds

2014-07-16 Thread Sudeep Holla
Hi Alex, On 16/07/14 12:21, Alex Shi wrote: 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_

[PATCH] vexpress/spc: fix a build warning on array bounds

2014-07-16 Thread Alex Shi
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];