Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1481106pxf; Fri, 2 Apr 2021 11:40:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvGZ0j4ZZUsPJD3lrKqUqPs/4Ir72wxgAVoFNPEi/s4V+zDOINqq6l6ooOpgVZ41Y55ag7 X-Received: by 2002:a17:907:9611:: with SMTP id gb17mr15643952ejc.325.1617388816601; Fri, 02 Apr 2021 11:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617388816; cv=none; d=google.com; s=arc-20160816; b=z7BTK5I5kGemD/SDLFR2cQIUOFzOimFkedgizArKX/MDJvmwc69p3XuC4xoqBkCw6s rVAlgy7md+KDJNjQ24y3tRh+N/86Fzc0uQ12+1m0Bf94XVIrYu76Vm189t+VIowOBi1i y5b9qSUhZ4IrXllCd6MvxHTBM4NaslPtMJTmcqJcOWW0crxwmDSFIBXnDG2t9BpJ7ppz n59H50I67wAkbhh+oIU68D4uIccwVb6VMCe4TYTwpCXjLYabmMA97ZWK8HNkC8d+WBPD ImI4MFBASUQfu/z49+MppTO53xkVRj2KTbYTARzX907ZiImV0uddmB7nZeM06loVjdo9 doeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=uJQI1ov9AE1/bOLPo9RRNlfrBskoSMsNjKNMc7auEOs=; b=A68ENCeplHNeTs2z45bfSa4jQcktIrK17u2n0kpv0c+kz4DIew5ob+weO3jx/yKDd6 lUXyG6PGnwFT+dqcPe3KEAfFOgSkxqqW7grqyL7Hbo06iQmrqv5imB51NeVePOTRCIGT OegVS60zkyT8LkFRvt8/nInp6mQt9u4kP8YX+ZKriFVXFdKQQ7WSFBNGfJDuV0fRRFcC hqbmdJB0XNt0Dhar68ONpKIkiAq5YCLiG4YibVgvf0yzvCpbgdCGPlkdWP7/z+ePDnJf qjJG1zHIxw7DKkh8YrpC9Aglh5zM3ogiWaQHac04hYG6NSMJnA0kA8Arl3pmmiycHgBB H5fA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c20si7725538ejr.651.2021.04.02.11.39.53; Fri, 02 Apr 2021 11:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230092AbhDBSh0 (ORCPT + 99 others); Fri, 2 Apr 2021 14:37:26 -0400 Received: from smtprelay0035.hostedemail.com ([216.40.44.35]:48604 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229647AbhDBShY (ORCPT ); Fri, 2 Apr 2021 14:37:24 -0400 Received: from omf09.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 18B551848AB32; Fri, 2 Apr 2021 18:37:22 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf09.hostedemail.com (Postfix) with ESMTPA id E522F1E04D5; Fri, 2 Apr 2021 18:37:20 +0000 (UTC) Message-ID: <906c8d899a3840afab1e624736b44292eacc6c97.camel@perches.com> Subject: Re: [PATCH 14/16] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_wlan_util.c From: Joe Perches To: Fabio Aiuto Cc: gregkh@linuxfoundation.org, dan.carpenter@oracle.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Date: Fri, 02 Apr 2021 11:37:17 -0700 In-Reply-To: <20210402174003.GA1399@agape.jhs> References: <34bf6cdc7bdf5c64d47cb3525897970644de7052.1617356821.git.fabioaiuto83@gmail.com> <2014e0fc141d73d907c781ca31c822c96d3a7c47.camel@perches.com> <20210402125127.GB1420@agape.jhs> <20210402174003.GA1399@agape.jhs> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamout03 X-Rspamd-Queue-Id: E522F1E04D5 X-Spam-Status: No, score=0.10 X-Stat-Signature: naiaqt4b5fn5f7fstamd8n9znom8idsy X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/uc4cr6ntvwUF+AwVVlcVSiEqG4XhPtCI= X-HE-Tag: 1617388640-394859 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2021-04-02 at 19:40 +0200, Fabio Aiuto wrote: > On Fri, Apr 02, 2021 at 08:20:17AM -0700, Joe Perches wrote: > > On Fri, 2021-04-02 at 14:51 +0200, Fabio Aiuto wrote: > > > On Fri, Apr 02, 2021 at 03:37:57AM -0700, Joe Perches wrote: > > > > On Fri, 2021-04-02 at 12:01 +0200, Fabio Aiuto wrote: > > > > > remove all RT_TRACE logs > > > > > > > > > > fix patch-related checkpatch issues [] > > > > Lastly, another suggestion would be to just submit a single patch > > > > removing _ALL_ the RT_TRACE uses not intermixing various other cleanups > > > > with the series and then do those other cleanups. > > > > > > > > Using a coccinelle script like: > > > > > > > > $ cat RT_TRACE.cocci > > > > @@ > > > > expression a, b, c; > > > > @@ > > > > > > > > - RT_TRACE(a, b, (c)); > > > > > > > > $ spatch -sp-file RT_TRACE.cocci drivers/staging/rtl8723bs/ > > > > > > > > And then clean up the various bits you think are inappropriately done. [] > > > thank you Joe, I tried with (RT_TRACE.cocci in parent folder) > > > > > > user@host:~/src/git/kernels/staging$ spatch -sp-file ../RT_TRACE.cocci drivers/staging/rtl8723bs/ > > > init_defs_builtins: /usr/local/bin/../lib/coccinelle/standard.h > > > 0 files match > > > > Likely you are running the script on the tree after you have > > applied all your patches. > > > > Try running the cocci script on a fresh copy of -next. > > > > Using the script and adding the script in the commit message helps > > others to verify that the changes you make do not have any other effect. > > > > $ cat RT_TRACE.cocci > > @@ > > expression a, b, c; > > @@ > > > > - RT_TRACE(a, b, (c)); > > > > $ git checkout next-20210401 > > $ spatch -sp-file RT_TRACE.cocci --in-place --no-show-diff --very-quiet drivers/staging/rtl8723bs/ > > 31 files match > > $ git diff --stat -p > > ?drivers/staging/rtl8723bs/core/rtw_cmd.c | 34 +------ [] > > ?28 files changed, 19 insertions(+), 935 deletions(-) [] > thank you Joe, this mail is so precious ;) I'm not quite sure what you mean by that but you quoted nearly 200k of the previous email. Please remember to trim your replies.