IB/ipath: Fix printk format warnings

ipath_driver.c:1260: warning: format '%Lx' expects type 'long long unsigned int', but argument 6 has type 'long unsigned int'
ipath_driver.c:1459: warning: format '%Lx' expects type 'long long unsigned int', but argument 4 has type 'u64'
ipath_intr.c:358: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'u64'
ipath_intr.c:358: warning: format '%Lu' expects type 'long long unsigned int', but argument 6 has type 'u64'
ipath_intr.c:1119: warning: format '%Lx' expects type 'long long unsigned int', but argument 5 has type 'u64'
ipath_intr.c:1119: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'u64'
ipath_intr.c:1123: warning: format '%Lx' expects type 'long long unsigned int', but argument 3 has type 'u64'
ipath_intr.c:1130: warning: format '%Lx' expects type 'long long unsigned int', but argument 4 has type 'u64'
ipath_iba7220.c:1032: warning: format '%llx' expects type 'long long unsigned int', but argument 4 has type 'u64'
ipath_iba7220.c:1045: warning: format '%llX' expects type 'long long unsigned int', but argument 3 has type 'u64'
ipath_iba7220.c:2506: warning: format '%Lu' expects type 'long long unsigned int', but argument 4 has type 'u64'

Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Cc: Sean Hefty <sean.hefty@intel.com>
Cc: Hal Rosenstock <hal.rosenstock@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>

authored by Alexander Beregalov and committed by Roland Dreier 70117b9e 52fd8ca6

+15 -9
+3 -2
drivers/infiniband/hw/ipath/ipath_driver.c
··· 1259 */ 1260 ipath_cdbg(ERRPKT, "Error Pkt, but no eflags! egrbuf" 1261 " %x, len %x hdrq+%x rhf: %Lx\n", 1262 - etail, tlen, l, 1263 le64_to_cpu(*(__le64 *) rhf_addr)); 1264 if (ipath_debug & __IPATH_ERRPKTDBG) { 1265 u32 j, *d, dw = rsize-2; ··· 1457 0xaaaaaaaaaaaaaaaaULL); /* All BUSY bits in qword */ 1458 if (oldval != dd->ipath_pioavailshadow[i]) 1459 ipath_dbg("shadow[%d] was %Lx, now %lx\n", 1460 - i, oldval, dd->ipath_pioavailshadow[i]); 1461 } 1462 spin_unlock_irqrestore(&ipath_pioavail_lock, flags); 1463 }
··· 1259 */ 1260 ipath_cdbg(ERRPKT, "Error Pkt, but no eflags! egrbuf" 1261 " %x, len %x hdrq+%x rhf: %Lx\n", 1262 + etail, tlen, l, (unsigned long long) 1263 le64_to_cpu(*(__le64 *) rhf_addr)); 1264 if (ipath_debug & __IPATH_ERRPKTDBG) { 1265 u32 j, *d, dw = rsize-2; ··· 1457 0xaaaaaaaaaaaaaaaaULL); /* All BUSY bits in qword */ 1458 if (oldval != dd->ipath_pioavailshadow[i]) 1459 ipath_dbg("shadow[%d] was %Lx, now %lx\n", 1460 + i, (unsigned long long) oldval, 1461 + dd->ipath_pioavailshadow[i]); 1462 } 1463 spin_unlock_irqrestore(&ipath_pioavail_lock, flags); 1464 }
+4 -3
drivers/infiniband/hw/ipath/ipath_iba7220.c
··· 1032 ipath_cdbg(VERBOSE, "done: xgxs=%llx from %llx\n", 1033 (unsigned long long) 1034 ipath_read_kreg64(dd, dd->ipath_kregs->kr_xgxsconfig), 1035 - prev_val); 1036 1037 guid = be64_to_cpu(dd->ipath_guid); 1038 ··· 1042 ipath_dbg("No GUID for heartbeat, faking %llx\n", 1043 (unsigned long long)guid); 1044 } else 1045 - ipath_cdbg(VERBOSE, "Wrote %llX to HRTBT_GUID\n", guid); 1046 ipath_write_kreg(dd, dd->ipath_kregs->kr_hrtbt_guid, guid); 1047 return ret; 1048 } ··· 2506 if (dd->ipath_flags & IPATH_IB_AUTONEG_INPROG) { 2507 ipath_dbg("Did not get to DDR INIT (%x) after %Lu msecs\n", 2508 ipath_ib_state(dd, dd->ipath_lastibcstat), 2509 - jiffies_to_msecs(jiffies)-startms); 2510 dd->ipath_flags &= ~IPATH_IB_AUTONEG_INPROG; 2511 if (dd->ipath_autoneg_tries == IPATH_AUTONEG_TRIES) { 2512 dd->ipath_flags |= IPATH_IB_AUTONEG_FAILED;
··· 1032 ipath_cdbg(VERBOSE, "done: xgxs=%llx from %llx\n", 1033 (unsigned long long) 1034 ipath_read_kreg64(dd, dd->ipath_kregs->kr_xgxsconfig), 1035 + (unsigned long long) prev_val); 1036 1037 guid = be64_to_cpu(dd->ipath_guid); 1038 ··· 1042 ipath_dbg("No GUID for heartbeat, faking %llx\n", 1043 (unsigned long long)guid); 1044 } else 1045 + ipath_cdbg(VERBOSE, "Wrote %llX to HRTBT_GUID\n", 1046 + (unsigned long long) guid); 1047 ipath_write_kreg(dd, dd->ipath_kregs->kr_hrtbt_guid, guid); 1048 return ret; 1049 } ··· 2505 if (dd->ipath_flags & IPATH_IB_AUTONEG_INPROG) { 2506 ipath_dbg("Did not get to DDR INIT (%x) after %Lu msecs\n", 2507 ipath_ib_state(dd, dd->ipath_lastibcstat), 2508 + (unsigned long long) jiffies_to_msecs(jiffies)-startms); 2509 dd->ipath_flags &= ~IPATH_IB_AUTONEG_INPROG; 2510 if (dd->ipath_autoneg_tries == IPATH_AUTONEG_TRIES) { 2511 dd->ipath_flags |= IPATH_IB_AUTONEG_FAILED;
+8 -4
drivers/infiniband/hw/ipath/ipath_intr.c
··· 356 dd->ipath_cregs->cr_iblinkerrrecovcnt); 357 if (linkrecov != dd->ipath_lastlinkrecov) { 358 ipath_dbg("IB linkrecov up %Lx (%s %s) recov %Lu\n", 359 - ibcs, ib_linkstate(dd, ibcs), 360 ipath_ibcstatus_str[ltstate], 361 - linkrecov); 362 /* and no more until active again */ 363 dd->ipath_lastlinkrecov = 0; 364 ipath_set_linkstate(dd, IPATH_IB_LINKDOWN); ··· 1119 if (unlikely(istat & ~dd->ipath_i_bitsextant)) 1120 ipath_dev_err(dd, 1121 "interrupt with unknown interrupts %Lx set\n", 1122 istat & ~dd->ipath_i_bitsextant); 1123 else if (istat & ~INFINIPATH_I_ERROR) /* errors do own printing */ 1124 - ipath_cdbg(VERBOSE, "intr stat=0x%Lx\n", istat); 1125 1126 if (istat & INFINIPATH_I_ERROR) { 1127 ipath_stats.sps_errints++; ··· 1131 dd->ipath_kregs->kr_errorstatus); 1132 if (!estat) 1133 dev_info(&dd->pcidev->dev, "error interrupt (%Lx), " 1134 - "but no error bits set!\n", istat); 1135 else if (estat == -1LL) 1136 /* 1137 * should we try clearing all, or hope next read
··· 356 dd->ipath_cregs->cr_iblinkerrrecovcnt); 357 if (linkrecov != dd->ipath_lastlinkrecov) { 358 ipath_dbg("IB linkrecov up %Lx (%s %s) recov %Lu\n", 359 + (unsigned long long) ibcs, 360 + ib_linkstate(dd, ibcs), 361 ipath_ibcstatus_str[ltstate], 362 + (unsigned long long) linkrecov); 363 /* and no more until active again */ 364 dd->ipath_lastlinkrecov = 0; 365 ipath_set_linkstate(dd, IPATH_IB_LINKDOWN); ··· 1118 if (unlikely(istat & ~dd->ipath_i_bitsextant)) 1119 ipath_dev_err(dd, 1120 "interrupt with unknown interrupts %Lx set\n", 1121 + (unsigned long long) 1122 istat & ~dd->ipath_i_bitsextant); 1123 else if (istat & ~INFINIPATH_I_ERROR) /* errors do own printing */ 1124 + ipath_cdbg(VERBOSE, "intr stat=0x%Lx\n", 1125 + (unsigned long long) istat); 1126 1127 if (istat & INFINIPATH_I_ERROR) { 1128 ipath_stats.sps_errints++; ··· 1128 dd->ipath_kregs->kr_errorstatus); 1129 if (!estat) 1130 dev_info(&dd->pcidev->dev, "error interrupt (%Lx), " 1131 + "but no error bits set!\n", 1132 + (unsigned long long) istat); 1133 else if (estat == -1LL) 1134 /* 1135 * should we try clearing all, or hope next read