[U-Boot] [PATCH] arm: zynq: Use unsigned type with comparison with ARRAY_SIZE

Joe Hershberger joe.hershberger at ni.com
Tue Dec 5 20:33:21 UTC 2017


On Fri, Nov 10, 2017 at 7:07 AM, Michal Simek <michal.simek at xilinx.com> wrote:
> Sparse is return warning about this:
> arch/arm/mach-zynq/slcr.c: In function 'zynq_slcr_get_mio_pin_status':
> arch/arm/mach-zynq/slcr.c:185:16: warning: comparison between signed and
> unsigned integer expressions [-Wsign-compare]
>   for (i = 0; i < ARRAY_SIZE(mio_periphs); i++) {
>                 ^
>
> Signed-off-by: Michal Simek <michal.simek at xilinx.com>

Reviewed-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list