IB/cxgb3: remove cxio_dbg.c
PATCH v2 1/1 IB/cxgb3: remove cxio_dbg.c
cxio_dbg.c is uncompiled since commit 2b540355cd2f ("RDMA/cxgb3: cleanups") 10 years after, we could remove it.
Acked-by Steve Wise <[email protected]>
---
Changes since v1:
- Remove also all DEBUG code as suggested by Joe Perches
drivers/infiniband/hw/cxgb3/Kconfig | 9 -- drivers/infiniband/hw/cxgb3/Makefile | 2 - drivers/infiniband/hw/cxgb3/cxio_dbg.c | 206 --------------------------------- drivers/infiniband/hw/cxgb3/cxio_hal.h | 9 -- drivers/infiniband/hw/cxgb3/iwch_cq.c | 6 - 5 files changed, 232 deletions(-) delete mode 100644 drivers/infiniband/hw/cxgb3/cxio_dbg.c
drivers/infiniband/hw/cxgb3/Kconfig +0 -9
@@ -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.
drivers/infiniband/hw/cxgb3/Makefile +0 -2
@@ -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
drivers/infiniband/hw/cxgb3/cxio_dbg.c deleted +0 -206
206 lines not on this page · raw message
drivers/infiniband/hw/cxgb3/cxio_hal.h +0 -9
@@ -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
drivers/infiniband/hw/cxgb3/iwch_cq.c +0 -6
@@ -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 ;
Signature · 6 lines
2.13.6 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Jason Gunthorpe
AppliedQuoted 9 lines · Corentin Labbe
cxio_dbg.cis uncompiled since commit2b540355cd2f("RDMA/cxgb3: cleanups") 10 years after, we could remove it.Signed-off-by Corentin Labbe <[email protected]>Acked-by Steve Wise <[email protected]>Changes since v1:
- Remove also all DEBUG code as suggested by Joe Perches
Quoted 7 lines
drivers/infiniband/hw/cxgb3/Kconfig | 9 -- drivers/infiniband/hw/cxgb3/Makefile | 2 - drivers/infiniband/hw/cxgb3/cxio_dbg.c | 206 --------------------------------- drivers/infiniband/hw/cxgb3/cxio_hal.h | 9 -- drivers/infiniband/hw/cxgb3/iwch_cq.c | 6 - 5 files changed, 232 deletions(-) delete mode 100644 drivers/infiniband/hw/cxgb3/cxio_dbg.c
Applied to -next, thanks
Jason