Skip to content

Commit fc968ae

Browse files
montjoiejgunthorpe
authored andcommitted
IB/cxgb3: remove cxio_dbg.c
cxio_dbg.c is uncompiled since commit 2b54035 ("RDMA/cxgb3: cleanups") 10 years after, we could remove it. Signed-off-by: Corentin Labbe <clabbe@baylibre.com> Acked-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent 7928b2c commit fc968ae

5 files changed

Lines changed: 0 additions & 232 deletions

File tree

‎drivers/infiniband/hw/cxgb3/Kconfig‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,3 @@ config INFINIBAND_CXGB3
1616

1717
To compile this driver as a module, choose M here: the module
1818
will be called iw_cxgb3.
19-
20-
config INFINIBAND_CXGB3_DEBUG
21-
bool "Verbose debugging output"
22-
depends on INFINIBAND_CXGB3
23-
default n
24-
---help---
25-
This option causes the Chelsio RDMA driver to produce copious
26-
amounts of debug messages. Select this if you are developing
27-
the driver or trying to diagnose a problem.

‎drivers/infiniband/hw/cxgb3/Makefile‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,3 @@ obj-$(CONFIG_INFINIBAND_CXGB3) += iw_cxgb3.o
55

66
iw_cxgb3-y := iwch_cm.o iwch_ev.o iwch_cq.o iwch_qp.o iwch_mem.o \
77
iwch_provider.o iwch.o cxio_hal.o cxio_resource.o
8-
9-
ccflags-$(CONFIG_INFINIBAND_CXGB3_DEBUG) += -DDEBUG

‎drivers/infiniband/hw/cxgb3/cxio_dbg.c‎

Lines changed: 0 additions & 206 deletions
This file was deleted.

‎drivers/infiniband/hw/cxgb3/cxio_hal.h‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,4 @@ int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb);
202202

203203
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
204204

205-
#ifdef DEBUG
206-
void cxio_dump_tpt(struct cxio_rdev *rev, u32 stag);
207-
void cxio_dump_pbl(struct cxio_rdev *rev, u32 pbl_addr, uint len, u8 shift);
208-
void cxio_dump_wqe(union t3_wr *wqe);
209-
void cxio_dump_wce(struct t3_cqe *wce);
210-
void cxio_dump_rqt(struct cxio_rdev *rdev, u32 hwtid, int nents);
211-
void cxio_dump_tcb(struct cxio_rdev *rdev, u32 hwtid);
212-
#endif
213-
214205
#endif

‎drivers/infiniband/hw/cxgb3/iwch_cq.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,6 @@ int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
200200

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

207204
/*
208205
* 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)
211208
*/
212209
do {
213210
err = iwch_poll_cq_one(rhp, chp, wc + npolled);
214-
#ifdef DEBUG
215-
BUG_ON(++i > 1000);
216-
#endif
217211
} while (err == -EAGAIN);
218212
if (err <= 0)
219213
break;

0 commit comments

Comments
 (0)