Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp888880pxf; Wed, 7 Apr 2021 14:13:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFdth32mpAn2AfOQumEa0arnlnHz2ovRyHsb1TXyxdyjj+t8d0SEz1omhjDVHW0U56rjjT X-Received: by 2002:a02:c6c4:: with SMTP id r4mr5412253jan.77.1617829995896; Wed, 07 Apr 2021 14:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617829995; cv=none; d=google.com; s=arc-20160816; b=TrL/ykBAiMGs6WoUSdd0FLsk2/PkPRhbhl4nCxvOAqgj/aKiq9pheGRouT2VDniW+7 TtzRxKhf/OlY+uBEszpZotAee3ha2WkQ8LCyU1KFbI6I5AXINbDz7rGr9NHQYpRE+8aL 5CKkKy4Xymw4gme+sQAmPAWpMR46YIlVX8fbhCNzyQSrjs+pkgbRuYZLHVl20x6w2+/p 5bfernzRrKR+rSXNRZsPbwO18s6ZR50HNdTHFYMAIy8HqetRI+59JDClkqTES44IhJjR kmfWqF37LsVqMDXx2dLBJ/K5LwK8BruxuyXe2ZVA3EZWKwYg7MRWDIUwp68CdXroj5Pp JCAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=6mfiX6mbO0i0woDWLulQPfirWS2TNdS5r2dMZddyy/I=; b=kXYXWPGdVn1aMFiuD00DfMYBlkpnynB9R4N5kpDI4ap1COO/9bNftIvJ/Z+H+JI5zd lifCqFFU6angwy5pmU3XdkmduzcDU6c07lTykywIYCOD5Q0LzzRPgksO+oGYQtwAvVdn 6r9CH6yt6KTz40lkv43ExrXSYi6GK+0M186B6AiO+lL6AUhHWeXU2SCodgKDG1AV1FPx M3ml1TVAryA+oxj3AtB7K4pAOeCjhl/sqRJQpYwgYgnaMX9YkOYeTat/SGF5JW8efMLQ dssKNEUXmPnjluyY+V5rEc2EWPxV86KyCyb4ff7AyjLdAJkH8XDKemCWBq7okROZMivo ultA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jxff0jEU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si21765263jaj.81.2021.04.07.14.13.03; Wed, 07 Apr 2021 14:13:15 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jxff0jEU; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353399AbhDGPPb (ORCPT + 99 others); Wed, 7 Apr 2021 11:15:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:34814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbhDGPP2 (ORCPT ); Wed, 7 Apr 2021 11:15:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CC5F0611CC; Wed, 7 Apr 2021 15:15:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1617808518; bh=0gKlucClZANrvM10NcqqxJIEiJI53s3hk98gtZbECtk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jxff0jEUkSUFZXdNVjGtHveHh8h1e2ExUWkaV5+58FB6oE8uj5eBUMTST+NH5/lxz M8rqwWuyhdOUIQGo4gpbfHq/owhX1WL45+A5ZKR/vA+/p3cjnMBJeM0stiqWA6z3B6 kxV1X7aA1ta8dV/Fr53JBjQxaaOksdW3XiLLTOOE= Date: Wed, 7 Apr 2021 17:14:28 +0200 From: Greg KH To: Fabio Aiuto Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 00/19] staging: rtl8723bs: remove DBG_871X trace macro Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 07, 2021 at 03:49:24PM +0200, Fabio Aiuto wrote: > This patchset removes all DBG_871X usages and definitions. > > The whole private tracing system is not tied to a configuration > symbol and the default behaviour is _trace nothing_. > > DBG_871X macros require the code to be modified by > hand in order to be turned on. This obviously has not happened > since the code was merged, so just remove them as they are unused. > > First patch fix a DBG_871X call. It has three args over only two > placeholders in the first format string argument. > If I would not make this fix, the semantic patch > used to bulk remove all macro occurences would ignore the abnormal > macro (the one with three args) and all subsequent occurrences in > the same file (core/rtw_recv.c). > > The second patch applies the cocci script. > > This is the semantic patch: > > @@ > expression a, b, c, d, e, f, g, h, i, j, k; > constant B, C, D, E; > @@ > > ( > - DBG_871X(a); > | > - DBG_871X(a, b); > | > - DBG_871X(a, B); > | > - DBG_871X(a, b, c); > | > - DBG_871X(a, B, c); > | > - DBG_871X(a, b, C); > | > - DBG_871X(a, B, C); > | > - DBG_871X(a, b, c, d); > | > - DBG_871X(a, B, c, d); > | > - DBG_871X(a, b, C, d); > | > - DBG_871X(a, b, c, D); > | > - DBG_871X(a, B, C, d); > | > - DBG_871X(a, B, c, D); > | > - DBG_871X(a, b, C, D); > | > - DBG_871X(a, B, C, D); > | > - DBG_871X(a, b, c, d, e); > | > - DBG_871X(a, B, c, d, e); > | > - DBG_871X(a, b, C, d, e); > | > - DBG_871X(a, b, c, D, e); > | > - DBG_871X(a, b, c, d, E); > | > - DBG_871X(a, B, C, d, e); > | > - DBG_871X(a, B, c, D, e); > | > - DBG_871X(a, B, c, d, E); > | > - DBG_871X(a, b, C, D, e); > | > - DBG_871X(a, b, C, d, E); > | > - DBG_871X(a, b, c, D, E); > | > - DBG_871X(a, B, C, D, e); > | > - DBG_871X(a, B, C, d, E); > | > - DBG_871X(a, B, c, D, E); > | > - DBG_871X(a, b, C, D, E); > | > - DBG_871X(a, B, C, D, E); > | > - DBG_871X(a, b, c, d, e, f); > | > - DBG_871X(a, b, c, d, e, f, g); > | > - DBG_871X(a, b, c, d, e, f, g, h); > | > - DBG_871X(a, b, c, d, e, f, g, h, i); > | > - DBG_871X(a, b, c, d, e, f, g, h, i, j); > | > - DBG_871X(a, b, c, d, e, f, g, h, i, j, k); > ) > > The third one removes an unmatched macro call, > maybe due to the trailing \, because the occurrence is > inside a macro expansion. > > The fourth one deletes all commented out call spread all over > the rtl8723bs code. > > Fifth one removes definitions. > > All remaining patches do some code cleaning on all > places where DBG_871X has been removed. Nice work, thanks for doing this, all now queued up! greg k-h