pci_device_solx_devfs_probe: implicit conversion changes signedness warnings
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 6 Jul 2013 17:09:31 +0000 (10:09 -0700)
committerAlan Coopersmith <alan.coopersmith@oracle.com>
Sat, 6 Jul 2013 17:11:02 +0000 (10:11 -0700)
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 <alan.coopersmith@oracle.com>
src/solx_devfs.c

index b365de9..41f5c19 100644 (file)
@@ -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 *)&regbuf[i];
        ent = reg->pci_phys_hi & 0xff;