Skip to content

Commit

Permalink
IB/cxgb3: remove cxio_dbg.c
Browse files Browse the repository at this point in the history
cxio_dbg.c is uncompiled since commit 2b54035 ("RDMA/cxgb3: cleanups")
10 years after, we could remove it.

Signed-off-by: Corentin Labbe <[email protected]>
Acked-by: Steve Wise <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
  • Loading branch information
montjoie authored and jgunthorpe committed Feb 14, 2018
1 parent 7928b2c commit fc968ae
Showing 5 changed files with 0 additions and 232 deletions.
9 changes: 0 additions & 9 deletions drivers/infiniband/hw/cxgb3/Kconfig
Original file line number Diff line number Diff line change
@@ -16,12 +16,3 @@ config INFINIBAND_CXGB3

To compile this driver as a module, choose M here: the module
will be called iw_cxgb3.

config INFINIBAND_CXGB3_DEBUG
bool "Verbose debugging output"
depends on INFINIBAND_CXGB3
default n
---help---
This option causes the Chelsio RDMA driver to produce copious
amounts of debug messages. Select this if you are developing
the driver or trying to diagnose a problem.
2 changes: 0 additions & 2 deletions drivers/infiniband/hw/cxgb3/Makefile
Original file line number Diff line number Diff line change
@@ -5,5 +5,3 @@ obj-$(CONFIG_INFINIBAND_CXGB3) += iw_cxgb3.o

iw_cxgb3-y := iwch_cm.o iwch_ev.o iwch_cq.o iwch_qp.o iwch_mem.o \
iwch_provider.o iwch.o cxio_hal.o cxio_resource.o

ccflags-$(CONFIG_INFINIBAND_CXGB3_DEBUG) += -DDEBUG
206 changes: 0 additions & 206 deletions drivers/infiniband/hw/cxgb3/cxio_dbg.c

This file was deleted.

9 changes: 0 additions & 9 deletions drivers/infiniband/hw/cxgb3/cxio_hal.h
Original file line number Diff line number Diff line change
@@ -202,13 +202,4 @@ int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb);

#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt

#ifdef DEBUG
void cxio_dump_tpt(struct cxio_rdev *rev, u32 stag);
void cxio_dump_pbl(struct cxio_rdev *rev, u32 pbl_addr, uint len, u8 shift);
void cxio_dump_wqe(union t3_wr *wqe);
void cxio_dump_wce(struct t3_cqe *wce);
void cxio_dump_rqt(struct cxio_rdev *rdev, u32 hwtid, int nents);
void cxio_dump_tcb(struct cxio_rdev *rdev, u32 hwtid);
#endif

#endif
6 changes: 0 additions & 6 deletions drivers/infiniband/hw/cxgb3/iwch_cq.c
Original file line number Diff line number Diff line change
@@ -200,9 +200,6 @@ int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)

spin_lock_irqsave(&chp->lock, flags);
for (npolled = 0; npolled < num_entries; ++npolled) {
#ifdef DEBUG
int i=0;
#endif

/*
* Because T3 can post CQEs that are _not_ associated
@@ -211,9 +208,6 @@ int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
*/
do {
err = iwch_poll_cq_one(rhp, chp, wc + npolled);
#ifdef DEBUG
BUG_ON(++i > 1000);
#endif
} while (err == -EAGAIN);
if (err <= 0)
break;

0 comments on commit fc968ae

Please sign in to comment.