From 3bf035fcfd0ad55220f484f7fb5d5f18690bdb10 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 6 Jul 2013 10:09:31 -0700 Subject: pci_device_solx_devfs_probe: implicit conversion changes signedness warnings solx_devfs.c:615:32: warning: implicit conversion changes signedness: 'unsigned long' to 'int' [-Wsign-conversion] for (i = 0; i < len; i = i + CELL_NUMS_1275) { ~ ~~^~~~~~~~~~~~~~~~ solx_devfs.c:615:30: warning: implicit conversion changes signedness: 'int' to 'unsigned long' [-Wsign-conversion] for (i = 0; i < len; i = i + CELL_NUMS_1275) { ^ ~ Signed-off-by: Alan Coopersmith --- src/solx_devfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solx_devfs.c b/src/solx_devfs.c index b365de9..41f5c19 100644 --- a/src/solx_devfs.c +++ b/src/solx_devfs.c @@ -612,7 +612,7 @@ pci_device_solx_devfs_probe( struct pci_device * dev ) * slot1 is part of BAR 0x10 * Linux give two region slot for 64 bit address. */ - for (i = 0; i < len; i = i + CELL_NUMS_1275) { + for (i = 0; i < len; i = i + (int)CELL_NUMS_1275) { reg = (pci_regspec_t *)®buf[i]; ent = reg->pci_phys_hi & 0xff; -- cgit v1.2.3