Received: by 10.223.176.5 with SMTP id f5csp1794516wra; Sun, 28 Jan 2018 08:26:48 -0800 (PST) X-Google-Smtp-Source: AH8x2249ks2BrcDxi4/y41Hb4x5EoSv+mDtBJEauyt1qBY4ZYcsghmuQnZGfJ/VseImaKqtp+PB5 X-Received: by 2002:a17:902:968e:: with SMTP id n14-v6mr19657213plp.21.1517156808484; Sun, 28 Jan 2018 08:26:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517156808; cv=none; d=google.com; s=arc-20160816; b=SVrgJ23agh0ahkej8QZhcmzXDjitCYJoFOt3TpHZ62NGdUQdXvZrCd+3wX88xrCLfX /bv1aDr07w9ck1HI8A4ceay8YGuIaXoF0KzAL+rsznzz7bCKCfXxefEdyJtjCacWbDTZ hw090cctuhq8XLkXY807tQwwgHER/tDC4q6pFqVJQw+CugodV6UmUEjOWR10jm3YSIbJ KDXacKD76bgaiRMNFOkFxlAYuTE89VdVoiBH26/ssJ/Fi6mYNgkcbtx7d2MOaJk1qwLj x+b3YZagRYlYsHRI7TNM78o1/PbPQA/qJbJbNSQJq30CybqprA9zebkaVjbw0nMSbZ/N tGAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :date:references:in-reply-to:cc:to:from:subject:message-id :arc-authentication-results; bh=lr3MBrAXx47XVBKU6Ii9rGMhgU1HBClvkvgakvgKhpU=; b=FNUhVqXIoAy565Dy+ScXugvIwOPsl3iViKlQWzCnXYqEsOlYOVA8oJkZtoTJIMlZF6 omi7YkYXsaisSdvjvziOOs05uNm3QXr1NB9of/SNlo4094i9lJA/hnt+HaNDpNdmPkOG UWlXrDKhhdCTvtwS/rHGfL0D2qES7VV4VTkapKK8+rPQMaqKiAeHEHVjdeFZdpy0Xe5B GsVSneoTBd3ReW71SaI/+/WC7Q6eJ9S0Eo+YY4jECJTw8LrxEszxl0T/Xde/2rzxB/v9 ts73ySmeD7TaXux7zQtGFd6mL1XGrIkRj7dADXMM45iJBCsqdEa7jArmFykUqmJyIQXi 9oPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a30si5945244pgn.599.2018.01.28.08.26.34; Sun, 28 Jan 2018 08:26:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752092AbeA1QYt (ORCPT + 99 others); Sun, 28 Jan 2018 11:24:49 -0500 Received: from smtprelay0141.hostedemail.com ([216.40.44.141]:58958 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751528AbeA1QYr (ORCPT ); Sun, 28 Jan 2018 11:24:47 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id ED7B418224D75; Sun, 28 Jan 2018 16:24:46 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::,RULES_HIT:41:355:379:541:599:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1543:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3871:3872:3873:3874:4250:4321:4605:5007:6119:6691:7775:7903:7904:9592:10004:10400:10848:11026:11232:11473:11657:11658:11914:12043:12048:12296:12438:12555:12740:12760:12895:12986:13161:13229:13439:14093:14096:14097:14659:14721:21080:21433:21451:21611:21627:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: work51_63bbe62c1aa56 X-Filterd-Recvd-Size: 4337 Received: from XPS-9350 (unknown [172.56.21.246]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Sun, 28 Jan 2018 16:24:45 +0000 (UTC) Message-ID: <1517156662.765.10.camel@perches.com> Subject: Re: [PATCH] IB/cxgb3: remove cxio_dbg.c From: Joe Perches To: Corentin Labbe , dledford@redhat.com, hal.rosenstock@gmail.com, sean.hefty@intel.com, swise@chelsio.com Cc: linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org In-Reply-To: <1517152289-25052-1-git-send-email-clabbe@baylibre.com> References: <1517152289-25052-1-git-send-email-clabbe@baylibre.com> Content-Type: text/plain; charset="ISO-8859-1" Date: Sun, 28 Jan 2018 08:24:22 -0800 Mime-Version: 1.0 X-Mailer: Evolution 3.26.1-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2018-01-28 at 15:11 +0000, Corentin Labbe wrote: > cxio_dbg.c is uncompiled since commit 2b540355cd2f ("RDMA/cxgb3: cleanups") > 10 years after, we could remove it. OK, now you could remove the prototypes and probably CONFIG_INFINIBAND_CXGB3_DEBUG too. There is a DEBUG test and many uses of pr_debug that would have modified behavior. The pr_debug uses would only be emitted via a dynamic_debug enable and the #ifdef DEBUG is probably not necessary or useful as it guards a BUG_ON. --- drivers/infiniband/hw/cxgb3/Kconfig | 9 --------- drivers/infiniband/hw/cxgb3/Makefile | 2 -- drivers/infiniband/hw/cxgb3/cxio_hal.h | 9 --------- drivers/infiniband/hw/cxgb3/iwch_cq.c | 7 ------- 4 files changed, 27 deletions(-) diff --git a/drivers/infiniband/hw/cxgb3/Kconfig b/drivers/infiniband/hw/cxgb3/Kconfig index 431be733fbbe..a7b77cb3d5d5 100644 --- a/drivers/infiniband/hw/cxgb3/Kconfig +++ b/drivers/infiniband/hw/cxgb3/Kconfig @@ -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. diff --git a/drivers/infiniband/hw/cxgb3/Makefile b/drivers/infiniband/hw/cxgb3/Makefile index 2c66d35d19bd..66fe0917aba0 100644 --- a/drivers/infiniband/hw/cxgb3/Makefile +++ b/drivers/infiniband/hw/cxgb3/Makefile @@ -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 diff --git a/drivers/infiniband/hw/cxgb3/cxio_hal.h b/drivers/infiniband/hw/cxgb3/cxio_hal.h index 7e70c5492262..c64e50b5a548 100644 --- a/drivers/infiniband/hw/cxgb3/cxio_hal.h +++ b/drivers/infiniband/hw/cxgb3/cxio_hal.h @@ -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 diff --git a/drivers/infiniband/hw/cxgb3/iwch_cq.c b/drivers/infiniband/hw/cxgb3/iwch_cq.c index dd5348e48806..f4979a505b3c 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_cq.c +++ b/drivers/infiniband/hw/cxgb3/iwch_cq.c @@ -200,10 +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 * with a WR, we might have to poll again after removing @@ -211,9 +207,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;