cxgb3/cxgb4: remove dead code from infiniband drivers
Subsystems (2)
PATCH 1/1 cxgb3/cxgb4: remove dead code from infiniband drivers
This removes unused code from the cxgb3 and cxgb4 infiniband drivers. Found by running 'make namespacecheck'; compile tested only
drivers/infiniband/hw/cxgb3/cxio_hal.c +2 -0
@@ -188,6 +188,7 @@ int cxio_create_cq(struct cxio_rdev *rdereturn (rdev_p->t3cdev_p->ctl (rdev_p->t3cdev_p,RDMA_CQ_SETUP , &setup)); } +#ifdef notyetint cxio_resize_cq (struct cxio_rdev *rdev_p,struct t3_cq *cq) {struct rdma_cq_setup setup;
@@ -199,6 +200,7 @@ int cxio_resize_cq(struct cxio_rdev *rde setup.ovfl_mode =1 ; return (rdev_p->t3cdev_p->ctl(rdev_p->t3cdev_p, RDMA_CQ_SETUP, &setup)); } +#endif static u32 get_qpid (struct cxio_rdev *rdev_p,struct cxio_ucontext *uctx) {
drivers/infiniband/hw/cxgb3/iwch_provider.h +0 -2
@@ -335,8 +335,6 @@ int iwch_post_terminate(struct iwch_qp *int iwch_post_zb_read (struct iwch_qp *qhp);int iwch_register_device (struct iwch_dev *dev);void iwch_unregister_device (struct iwch_dev *dev); -int iwch_quiesce_qps (struct iwch_cq *chp); -int iwch_resume_qps (struct iwch_cq *chp);void stop_read_rep_timer (struct iwch_qp *qhp);int iwch_register_mem (struct iwch_dev *rhp,struct iwch_pd *php,struct iwch_mr *mhp,int shift);
drivers/infiniband/hw/cxgb3/iwch_qp.c +0 -56
59 lines not on this page · raw message
drivers/infiniband/hw/cxgb4/iw_cxgb4.h +0 -1
@@ -730,7 +730,6 @@ int c4iw_flush_rq(struct t4_wq *wq, struint c4iw_flush_sq (struct t4_wq *wq,struct t4_cq *cq,int count);int c4iw_ev_handler (struct c4iw_dev *rnicp,u32 qid);u16 c4iw_rqes_posted (struct c4iw_qp *qhp); -int c4iw_post_zb_read (struct c4iw_qp *qhp);int c4iw_post_terminate (struct c4iw_qp *qhp,struct t4_cqe *err_cqe);u32 c4iw_get_cqid (struct c4iw_rdev *rdev,struct c4iw_dev_ucontext *uctx); void c4iw_put_cqid(struct c4iw_rdev *rdev, u32 qid,
drivers/infiniband/hw/cxgb4/qp.c +0 -30
@@ -842,36 +842,6 @@ static inline void build_term_codes(stru } } -int c4iw_post_zb_read (struct c4iw_qp *qhp) -{ -union t4_wr *wqe; -struct sk_buff *skb; -u8 len16; - -PDBG ("%s enter\n" , __func__); - skb =alloc_skb (40 ,GFP_KERNEL ); -if (!skb) { -printk (KERN_ERR "%s cannot send zb_read!!\n" , __func__); -return -ENOMEM ; - } -set_wr_txq (skb,CPL_PRIORITY_DATA , qhp->ep->txq_idx); - - wqe = (union t4_wr *)skb_put (skb,sizeof wqe->read); -memset (wqe,0 ,sizeof wqe->read); - wqe->read.r2 =cpu_to_be64 (0 ); - wqe->read.stag_sink =cpu_to_be32 (1 ); - wqe->read.to_sink_hi =cpu_to_be32 (0 ); - wqe->read.to_sink_lo =cpu_to_be32 (1 ); - wqe->read.stag_src =cpu_to_be32 (1 ); - wqe->read.plen =cpu_to_be32 (0 ); - wqe->read.to_src_hi =cpu_to_be32 (0 ); - wqe->read.to_src_lo =cpu_to_be32 (1 ); - len16 =DIV_ROUND_UP (sizeof wqe->read,16 ); -init_wr_hdr (wqe,0 ,FW_RI_RDMA_READ_WR ,FW_RI_COMPLETION_FLAG , len16); - -return c4iw_ofld_send (&qhp->rhp->rdev, skb); -} -static void post_terminate (struct c4iw_qp *qhp,struct t4_cqe *err_cqe,gfp_t gfp) {
--
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
Quoted 5 lines · Stephen Hemminger
This removes unused code from the cxgb3 and cxgb4 infiniband drivers. Found by running 'make namespacecheck'; compile tested only
Signed-off-by Stephen Hemminger<[email protected]>
--
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
Steve (Wise), any feeling on this (https://patchwork.kernel.org/patch/257761/)?
--
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
A message that is not in the archive (sent off-list or not yet received): [email protected]
Steve Wise
Acked-byQuoted 2 lines · Roland Dreier
Steve (Wise), any feeling on this (https://patchwork.kernel.org/patch/257761/)?
Looks ok.
--
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
thanks, applied
--
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