Thanks, applied along with the following warning cleanup for archs
where u64 is unsigned long instead unsigned long long:

diff --git a/drivers/infiniband/hw/cxgb3/cxio_dbg.c 
b/drivers/infiniband/hw/cxgb3/cxio_dbg.c
index dfaa704..5a7306f 100644
--- a/drivers/infiniband/hw/cxgb3/cxio_dbg.c
+++ b/drivers/infiniband/hw/cxgb3/cxio_dbg.c
@@ -62,7 +62,7 @@ void cxio_dump_tpt(struct cxio_rdev *rdev, u32 stag)
 
        data = (u64 *)m->buf;
        while (size > 0) {
-               PDBG("TPT %08x: %016llx\n", m->addr, (u64)*data);
+               PDBG("TPT %08x: %016llx\n", m->addr, (unsigned long long) 
*data);
                size -= 8;
                data++;
                m->addr += 8;
@@ -100,7 +100,7 @@ void cxio_dump_pbl(struct cxio_rdev *rdev, u32 pbl_addr, 
uint len, u8 shift)
 
        data = (u64 *)m->buf;
        while (size > 0) {
-               PDBG("PBL %08x: %016llx\n", m->addr, (u64)*data);
+               PDBG("PBL %08x: %016llx\n", m->addr, (unsigned long long) 
*data);
                size -= 8;
                data++;
                m->addr += 8;
@@ -116,7 +116,8 @@ void cxio_dump_wqe(union t3_wr *wqe)
        if (size == 0)
                size = 8;
        while (size > 0) {
-               PDBG("WQE %p: %016llx\n", data, be64_to_cpu(*data));
+               PDBG("WQE %p: %016llx\n", data,
+                    (unsigned long long) be64_to_cpu(*data));
                size--;
                data++;
        }
@@ -128,7 +129,8 @@ void cxio_dump_wce(struct t3_cqe *wce)
        int size = sizeof(*wce);
 
        while (size > 0) {
-               PDBG("WCE %p: %016llx\n", data, be64_to_cpu(*data));
+               PDBG("WCE %p: %016llx\n", data,
+                    (unsigned long long) be64_to_cpu(*data));
                size -= 8;
                data++;
        }
@@ -159,7 +161,7 @@ void cxio_dump_rqt(struct cxio_rdev *rdev, u32 hwtid, int 
nents)
 
        data = (u64 *)m->buf;
        while (size > 0) {
-               PDBG("RQT %08x: %016llx\n", m->addr, (u64)*data);
+               PDBG("RQT %08x: %016llx\n", m->addr, (unsigned long long) 
*data);
                size -= 8;
                data++;
                m->addr += 8;
diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.c 
b/drivers/infiniband/hw/cxgb3/cxio_hal.c
index 19553b3..0531b94 100644
--- a/drivers/infiniband/hw/cxgb3/cxio_hal.c
+++ b/drivers/infiniband/hw/cxgb3/cxio_hal.c
@@ -298,7 +298,7 @@ int cxio_create_qp(struct cxio_rdev *rdev_p, u32 
kernel_domain,
                wq->udb = (u64)rdev_p->rnic_info.udbell_physbase +
                                        (wq->qpid << rdev_p->qpshift);
        PDBG("%s qpid 0x%x doorbell 0x%p udb 0x%llx\n", __FUNCTION__,
-            wq->qpid, wq->doorbell, wq->udb);
+            wq->qpid, wq->doorbell, (unsigned long long) wq->udb);
        return 0;
 err4:
        kfree(wq->sq);
@@ -553,8 +553,8 @@ static int cxio_hal_init_ctrl_qp(struct cxio_rdev *rdev_p)
        wqe->ctx1 = cpu_to_be64(ctx1);
        wqe->ctx0 = cpu_to_be64(ctx0);
        PDBG("CtrlQP dma_addr 0x%llx workq %p size %d\n",
-            (u64) rdev_p->ctrl_qp.dma_addr, rdev_p->ctrl_qp.workq,
-            1 << T3_CTRL_QP_SIZE_LOG2);
+            (unsigned long long) rdev_p->ctrl_qp.dma_addr,
+            rdev_p->ctrl_qp.workq, 1 << T3_CTRL_QP_SIZE_LOG2);
        skb->priority = CPL_PRIORITY_CONTROL;
        return (cxgb3_ofld_send(rdev_p->t3cdev_p, skb));
 }
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cq.c 
b/drivers/infiniband/hw/cxgb3/iwch_cq.c
index 3d7c96f..98b3bdb 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_cq.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_cq.c
@@ -87,7 +87,7 @@ static int iwch_poll_cq_one(struct iwch_dev *rhp, struct 
iwch_cq *chp,
             "lo 0x%x cookie 0x%llx\n", __FUNCTION__,
             CQE_QPID(cqe), CQE_TYPE(cqe),
             CQE_OPCODE(cqe), CQE_STATUS(cqe), CQE_WRID_HI(cqe),
-            CQE_WRID_LOW(cqe), cookie);
+            CQE_WRID_LOW(cqe), (unsigned long long) cookie);
 
        if (CQE_TYPE(cqe) == 0) {
                if (!CQE_STATUS(cqe))
diff --git a/drivers/infiniband/hw/cxgb3/iwch_mem.c 
b/drivers/infiniband/hw/cxgb3/iwch_mem.c
index 5909ec5..2b6cd53 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_mem.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_mem.c
@@ -163,7 +163,9 @@ int build_phys_page_list(struct ib_phys_buf *buffer_list,
                            ((u64) j << *shift));
 
        PDBG("%s va 0x%llx mask 0x%llx shift %d len %lld pbl_size %d\n",
-            __FUNCTION__, *iova_start, mask, *shift, *total_size, *npages);
+            __FUNCTION__, (unsigned long long) *iova_start,
+            (unsigned long long) mask, *shift, (unsigned long long) 
*total_size,
+            *npages);
 
        return 0;
 
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.c 
b/drivers/infiniband/hw/cxgb3/iwch_provider.c
index d02cd72..549de0a 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_provider.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_provider.c
@@ -213,7 +213,7 @@ static struct ib_cq *iwch_create_cq(struct ib_device 
*ibdev, int entries,
        }
        PDBG("created cqid 0x%0x chp %p size 0x%0x, dma_addr 0x%0llx\n",
             chp->cq.cqid, chp, (1 << chp->cq.size_log2),
-            (u64)chp->cq.dma_addr);
+            (unsigned long long) chp->cq.dma_addr);
        return &chp->ibcq;
 }
 
@@ -323,7 +323,7 @@ static int iwch_mmap(struct ib_ucontext *context, struct 
vm_area_struct *vma)
        struct iwch_ucontext *ucontext;
 
        PDBG("%s off 0x%lx addr 0x%llx len %d\n", __FUNCTION__, vma->vm_pgoff,
-            pgaddr, len);
+            (unsigned long long) pgaddr, len);
 
        if (vma->vm_start & (PAGE_SIZE-1)) {
                return -EINVAL;
@@ -873,7 +873,8 @@ static struct ib_qp *iwch_create_qp(struct ib_pd *pd,
        PDBG("%s sq_num_entries %d, rq_num_entries %d "
             "qpid 0x%0x qhp %p dma_addr 0x%llx size %d\n",
             __FUNCTION__, qhp->attr.sq_num_entries, qhp->attr.rq_num_entries,
-            qhp->wq.qpid, qhp, (u64)qhp->wq.dma_addr, 1 << qhp->wq.size_log2);
+            qhp->wq.qpid, qhp, (unsigned long long) qhp->wq.dma_addr,
+            1 << qhp->wq.size_log2);
        return &qhp->ibqp;
 }
 
diff --git a/drivers/infiniband/hw/cxgb3/iwch_provider.h 
b/drivers/infiniband/hw/cxgb3/iwch_provider.h
index b2eb29e..5680d82 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_provider.h
+++ b/drivers/infiniband/hw/cxgb3/iwch_provider.h
@@ -212,8 +212,8 @@ static inline struct iwch_mm_entry *remove_mmap(struct 
iwch_ucontext *ucontext,
                if (mm->addr == addr && mm->len == len) {
                        list_del_init(&mm->entry);
                        spin_unlock(&ucontext->mmap_lock);
-                       PDBG("%s addr 0x%llx len %d\n", __FUNCTION__, mm->addr,
-                            mm->len);
+                       PDBG("%s addr 0x%llx len %d\n", __FUNCTION__,
+                            (unsigned long long) mm->addr, mm->len);
                        return mm;
                }
        }
@@ -225,7 +225,8 @@ static inline void insert_mmap(struct iwch_ucontext 
*ucontext,
                               struct iwch_mm_entry *mm)
 {
        spin_lock(&ucontext->mmap_lock);
-       PDBG("%s addr 0x%llx len %d\n", __FUNCTION__, mm->addr, mm->len);
+       PDBG("%s addr 0x%llx len %d\n", __FUNCTION__,
+            (unsigned long long) mm->addr, mm->len);
        list_add_tail(&mm->entry, &ucontext->mmaps);
        spin_unlock(&ucontext->mmap_lock);
 }
diff --git a/drivers/infiniband/hw/cxgb3/iwch_qp.c 
b/drivers/infiniband/hw/cxgb3/iwch_qp.c
index 8b44b69..e066727 100644
--- a/drivers/infiniband/hw/cxgb3/iwch_qp.c
+++ b/drivers/infiniband/hw/cxgb3/iwch_qp.c
@@ -329,7 +329,7 @@ int iwch_post_send(struct ib_qp *ibqp, struct ib_send_wr 
*wr,
                               Q_GENBIT(qhp->wq.wptr, qhp->wq.size_log2),
                               0, t3_wr_flit_cnt);
                PDBG("%s cookie 0x%llx wq idx 0x%x swsq idx %ld opcode %d\n",
-                    __FUNCTION__, wr->wr_id, idx,
+                    __FUNCTION__, (unsigned long long) wr->wr_id, idx,
                     Q_PTR2IDX(qhp->wq.sq_wptr, qhp->wq.sq_size_log2),
                     sqp->opcode);
                wr = wr->next;
@@ -381,8 +381,8 @@ int iwch_post_receive(struct ib_qp *ibqp, struct ib_recv_wr 
*wr,
                               Q_GENBIT(qhp->wq.wptr, qhp->wq.size_log2),
                               0, sizeof(struct t3_receive_wr) >> 3);
                PDBG("%s cookie 0x%llx idx 0x%x rq_wptr 0x%x rw_rptr 0x%x "
-                    "wqe %p \n", __FUNCTION__, wr->wr_id, idx,
-                    qhp->wq.rq_wptr, qhp->wq.rq_rptr, wqe);
+                    "wqe %p \n", __FUNCTION__, (unsigned long long) wr->wr_id,
+                    idx, qhp->wq.rq_wptr, qhp->wq.rq_rptr, wqe);
                ++(qhp->wq.rq_wptr);
                ++(qhp->wq.wptr);
                wr = wr->next;

_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to