From patchwork Tue Apr 28 18:35:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad S X-Patchwork-Id: 6288691 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B9878BEEE1 for ; Tue, 28 Apr 2015 13:23:20 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AA43F20376 for ; Tue, 28 Apr 2015 13:23:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 79AE620375 for ; Tue, 28 Apr 2015 13:23:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965450AbbD1NXR (ORCPT ); Tue, 28 Apr 2015 09:23:17 -0400 Received: from stargate.chelsio.com ([67.207.112.58]:1751 "EHLO stargate3.asicdesigners.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965560AbbD1NXQ (ORCPT ); Tue, 28 Apr 2015 09:23:16 -0400 Received: from gill.asicdesigners.com.com ([10.193.186.211]) by stargate3.asicdesigners.com (8.13.8/8.13.8) with ESMTP id t3SDJkcR029278; Tue, 28 Apr 2015 06:19:47 -0700 From: Hariprasad Shenai To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, swise@opengridcomputing.com, leedom@chelsio.com, nirranjan@chelsio.com, Hariprasad Shenai Subject: [PATCH for-4.1] iw_cxgb4: Fix kbuild bot reported warnings Date: Wed, 29 Apr 2015 00:05:38 +0530 Message-Id: <1430246138-3218-1-git-send-email-hariprasad@chelsio.com> X-Mailer: git-send-email 2.3.4 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_03_06, RCVD_IN_DNSWL_HI,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Commit 20dca80f ("iw_cxgb4: 32b platform fixes") introduced warnings related to inappropriate argument type while printing arguments Reported by: Dan Carpenter Reported by: kbuild test robot Signed-off-by: Hariprasad Shenai --- drivers/infiniband/hw/cxgb4/cq.c | 5 +++-- drivers/infiniband/hw/cxgb4/mem.c | 4 ++-- drivers/infiniband/hw/cxgb4/qp.c | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index be66d5d..1f114c0 100644 --- a/drivers/infiniband/hw/cxgb4/cq.c +++ b/drivers/infiniband/hw/cxgb4/cq.c @@ -340,7 +340,8 @@ static void advance_oldest_read(struct t4_wq *wq) */ void c4iw_flush_hw_cq(struct c4iw_cq *chp) { - struct t4_cqe *hw_cqe, *swcqe, read_cqe; + struct t4_cqe *hw_cqe = NULL; + struct t4_cqe *swcqe, read_cqe; struct c4iw_qp *qhp; struct t4_swsqe *swsqe; int ret; @@ -975,7 +976,7 @@ struct ib_cq *c4iw_create_cq(struct ib_device *ibdev, int entries, mm2->len = PAGE_SIZE; insert_mmap(ucontext, mm2); } - PDBG("%s cqid 0x%0x chp %p size %u memsize %zu, dma_addr 0x%0llx\n", + PDBG("%s cqid 0x%0x chp %p size %u memsize %lu, dma_addr 0x%0llx\n", __func__, chp->cq.cqid, chp, chp->cq.size, (uintptr_t)chp->cq.memsize, (unsigned long long) chp->cq.dma_addr); diff --git a/drivers/infiniband/hw/cxgb4/mem.c b/drivers/infiniband/hw/cxgb4/mem.c index 9a26649..42805f6 100644 --- a/drivers/infiniband/hw/cxgb4/mem.c +++ b/drivers/infiniband/hw/cxgb4/mem.c @@ -930,7 +930,7 @@ struct ib_fast_reg_page_list *c4iw_alloc_fastreg_pbl(struct ib_device *device, PDBG("%s c4pl %p pll_len %u page_list %p dma_addr %pad\n", __func__, c4pl, c4pl->pll_len, c4pl->ibpl.page_list, - (void *)(uintptr_t)c4pl->dma_addr); + (dma_addr_t *)(uintptr_t)c4pl->dma_addr); return &c4pl->ibpl; } @@ -941,7 +941,7 @@ void c4iw_free_fastreg_pbl(struct ib_fast_reg_page_list *ibpl) PDBG("%s c4pl %p pll_len %u page_list %p dma_addr %pad\n", __func__, c4pl, c4pl->pll_len, c4pl->ibpl.page_list, - (void *)(uintptr_t)c4pl->dma_addr); + (dma_addr_t *)(uintptr_t)c4pl->dma_addr); dma_free_coherent(&c4pl->dev->rdev.lldi.pdev->dev, c4pl->pll_len, diff --git a/drivers/infiniband/hw/cxgb4/qp.c b/drivers/infiniband/hw/cxgb4/qp.c index 7ce40c3..176a238 100644 --- a/drivers/infiniband/hw/cxgb4/qp.c +++ b/drivers/infiniband/hw/cxgb4/qp.c @@ -1784,8 +1784,8 @@ struct ib_qp *c4iw_create_qp(struct ib_pd *pd, struct ib_qp_init_attr *attrs, qhp->ibqp.qp_num = qhp->wq.sq.qid; init_timer(&(qhp->timer)); INIT_LIST_HEAD(&qhp->db_fc_entry); - PDBG("%s sq id %u size %u memsize %zu num_entries %u " - "rq id %u size %u memsize %zu num_entries %u\n", __func__, + PDBG("%s sq id %u size %u memsize %lu num_entries %u " + "rq id %u size %u memsize %lu num_entries %u\n", __func__, qhp->wq.sq.qid, qhp->wq.sq.size, (unsigned long)qhp->wq.sq.memsize, attrs->cap.max_send_wr, qhp->wq.rq.qid, qhp->wq.rq.size, (unsigned long)qhp->wq.rq.memsize, attrs->cap.max_recv_wr);