Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp430257pxb; Sat, 10 Apr 2021 07:22:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxz/FDrWgiEfK+KpKIrr8iWel8b1rzrtFixEas8l0yznd4W0txXRiQakBj06YtN5C1qJ9k X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr21774989edw.309.1618064521113; Sat, 10 Apr 2021 07:22:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618064521; cv=none; d=google.com; s=arc-20160816; b=OcKfFZbPFFTamkwVbC9DMPznLg0rxsvspxGDrD1MGeap6yX938V4HsbQPByyAMMqsN FHKQ6G1sVdDvmHQbuDTV2DNEhQQhY7BH/sy0RndeCDBzG1QUpLYvTMWgLeBSNPQilieN RPWY2zD+1BSQ3zj31HiU+Xg9Y0gI/rpkP6HUDAYdqesFJvJOt071PY7FYPghBbDTqr2e uO/lfN7ofgg1++ICLHlzZ0lQT2HNN4D9EDy6tB40Znyy9NRG9DxgcJ+4u0JBU6708ZZ4 qi4Ph4CB4Zls5YJX7/1w8KSICGUpcvjhwmknHbyxnf+IGGjXfx+RIfWMW7US2f2PgppW Fs7Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=VnVAs9S/fAMLk5Dt98uPXMFZSkDV368cEFeZ4fHEM3U=; b=F2IVIBnnwqo6QMFscQAxS0/UA5mRCoQkqEcizvyRA0DqG9052rj7KDc2ZRrQvS/evJ UN3sSq3UWxZ9+v90qtBwZAnpEJjx6/3TK8xrmcKVgePZgyQkMdWJifzAHpVgp4ON2RwY 2jHvRBG6gyhdrOrdav95Ojhevh9yJBbUhyo+aVUY7UJ0iWxDqJE6FN0iRuYRTCJEj8gQ Lkyq9WrGgwcDL6u7E0qvqElN1OKacyxd5hEO1LnkLCg5PXZorSQtunMrTjYT40HRsfUi u1eHHHs26chPwmakmA9kipDyZILcpO43IUWDUGTcqVNNqn0fni2T9kZJcxMohZfm47mT wENQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mfLlFm5n; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si161976eju.181.2021.04.10.07.21.38; Sat, 10 Apr 2021 07:22:01 -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=@gmail.com header.s=20161025 header.b=mfLlFm5n; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234781AbhDJOU5 (ORCPT + 99 others); Sat, 10 Apr 2021 10:20:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234722AbhDJOU4 (ORCPT ); Sat, 10 Apr 2021 10:20:56 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8916C06138A for ; Sat, 10 Apr 2021 07:20:41 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id f8so9781848edd.11 for ; Sat, 10 Apr 2021 07:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VnVAs9S/fAMLk5Dt98uPXMFZSkDV368cEFeZ4fHEM3U=; b=mfLlFm5nlRvh5A7RB4B/XPr5PEQ1v6SLW2lXm6UvMdBgPtXEMdCysF85acOGNlO7PC gEGt/MhbBlmQD7jDsbeLP4uRVi84eHThpMmGbRAHIA9lJsTaBBlyYoJOgmLOp+wrznWF Qql2NEtI97AEnwk0cjowHBFQ0BEclzcn5s3kyExBVTbFRmX69BjvxJ9x7uQYsQJ52KOQ AoXjTA96kTtnUV+0He22kP4HElq64xbxzMQmyXK3dk670oA95a3HjMl0MOv2TFszYCHx TyOyeQFNLLeXy5O/tVFJXqNLcxXt5Cgi0xftBWOsC7Phxi0Txi2ewR/e1jcFAHhii2kd 1jEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VnVAs9S/fAMLk5Dt98uPXMFZSkDV368cEFeZ4fHEM3U=; b=TG0/KtJf/qMbxi/vE1/VvoGZjAuZm+dFZitk+l0QgxcD2qH5e1s86s8DRNp1LCVLZ5 WXN9Qz43RyrDimC6rPVcBmbpChwBSxDY3FjrLFjVP9baggT35tIydXoBU/11E5YZXMkk a9YupJSfXxkFBViaNtlT0ENzMUdN4Jt3xddWEREv13F3f4CpdaZ1kjJ3jJ6xAfQiHiGD 5AOShkmNWKNtEImvETooy3cYsOG3OsSNQ9XNRBp9QY0KrY6s6jGnq1BRAudgFNeEj7rH u7zWJgvFSknMccUWNDZHM7gqPoVpVFs9UCpQwnFKAerbzqEGiZOjCfCapbvIziu/HojT MhQw== X-Gm-Message-State: AOAM5331+PvaIBvSwc2CyjhTaLVbjSouKTtclFcXN5/wRwgy2hCaBTbb RXFvDP9YSh5AmeWKae0sWebri3BiD0GHeg== X-Received: by 2002:a05:6402:5205:: with SMTP id s5mr19022336edd.65.1618064440313; Sat, 10 Apr 2021 07:20:40 -0700 (PDT) Received: from agape ([5.171.81.28]) by smtp.gmail.com with ESMTPSA id b21sm2740100ejz.123.2021.04.10.07.20.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Apr 2021 07:20:40 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 00/25] staging: rtl8723bs: remove DBG_8192C tracing macro Date: Sat, 10 Apr 2021 16:20:13 +0200 Message-Id: X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset remove from rtl8723bs driver the tracing macro DBG_8192C. This macro belongs to a verbose private tracing family, which by default is set to _do nothing_. The only way to activate the tracing is to manually define a symbol in code. First patch applies the following semantic patch: @@ expression a, b, c, d, e, f, g, h, i, j, k; constant B, C, D, E; @@ ( - DBG_8192C(a); | - DBG_8192C(a, b); | - DBG_8192C(a, B); | - DBG_8192C(a, b, c); | - DBG_8192C(a, B, c); | - DBG_8192C(a, b, C); | - DBG_8192C(a, B, C); | - DBG_8192C(a, b, c, d); | - DBG_8192C(a, B, c, d); | - DBG_8192C(a, b, C, d); | - DBG_8192C(a, b, c, D); | - DBG_8192C(a, B, C, d); | - DBG_8192C(a, B, c, D); | - DBG_8192C(a, b, C, D); | - DBG_8192C(a, B, C, D); | - DBG_8192C(a, b, c, d, e); | - DBG_8192C(a, B, c, d, e); | - DBG_8192C(a, b, C, d, e); | - DBG_8192C(a, b, c, D, e); | - DBG_8192C(a, b, c, d, E); | - DBG_8192C(a, B, C, d, e); | - DBG_8192C(a, B, c, D, e); | - DBG_8192C(a, B, c, d, E); | - DBG_8192C(a, b, C, D, e); | - DBG_8192C(a, b, C, d, E); | - DBG_8192C(a, b, c, D, E); | - DBG_8192C(a, B, C, D, e); | - DBG_8192C(a, B, C, d, E); | - DBG_8192C(a, B, c, D, E); | - DBG_8192C(a, b, C, D, E); | - DBG_8192C(a, B, C, D, E); | - DBG_8192C(a, b, c, d, e, f); | - DBG_8192C(a, b, c, d, e, f, g); | - DBG_8192C(a, b, c, d, e, f, g, h); | - DBG_8192C(a, b, c, d, e, f, g, h, i); | - DBG_8192C(a, b, c, d, e, f, g, h, i, j); | - DBG_8192C(a, b, c, d, e, f, g, h, i, j, k); ) Second patch removes all commented out call of macro. Third patch removes macro definitions. All subsequent patches do some code cleaning in all places left empty by deleted macro, such as empty #ifdef blocks, conditional code blocks guarded by never defined symbols if-else blocks, for cycles, commented debug symbol definitions, unnecessary parentheses and some other checkpatch issues. Fabio Aiuto (25): staging: rtl8723bs: remove all DBG_8192C logs staging: rtl8723bs: remove all commented out DBG_8192C logs staging: rtl8723bs: remove DBG_8192C macro definitions staging: rtl8723bs: remove all if-blocks left empty by DBG_8192C-remove coccinelle script staging: rtl8723bs: put spaces around operators staging: rtl8723bs: remove unused code blocks guarded by DEBUG_RTL871X staging: rtl8723bs: remove commented out DEBUG_RTL871X definition staging: rtl8723bs: remove code blocks guarded by DEBUG symbol staging: rtl8723bs: remove empty code block guarded by DBG_CCX staging: rtl8723bs: remove code block guarded by undefined SDIO_DEBUG_IO staging: rtl8723bs: remove commented out SDIO_DEBUG_IO symbol definition staging: rtl8723bs: remove empty ifdef blocks conditioned to DEBUG_CFG80211 definition staging: rtl8723bs: remove commented out DEBUG_CFG80211 symbol definition staging: rtl8723bs: remove unnecessary bracks staging: rtl8723bs: fix comparison to null staging: rtl8723bs: put spaces around operators staging: rtl8723bs: split long line staging: rtl8723bs: put constant on the right side of the test staging: rtl8723bs: remove empty if and else blocks staging: rtl8723bs: put constant on the right side of a test in os_dep/ioctl_cfg80211.c staging: rtl8723bs: remove unnecessary parentheses in os_dep/ioctl_cfg80211.c staging: rtl8723bs: remove empty else block in os_dep/ioctl_cfg80211.c staging: rtl8723bs: fix comparison to true issue staging: rtl8723bs: remove more unnecessary parentheses staging: rtl8723bs: remove more empty if blocks after DBG_8192C deletion drivers/staging/rtl8723bs/core/rtw_debug.c | 35 --- .../staging/rtl8723bs/core/rtw_ieee80211.c | 1 - drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 21 -- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 7 - .../staging/rtl8723bs/core/rtw_wlan_util.c | 3 - drivers/staging/rtl8723bs/core/rtw_xmit.c | 7 +- drivers/staging/rtl8723bs/hal/hal_com.c | 10 +- drivers/staging/rtl8723bs/hal/odm.c | 1 - drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 48 +--- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 263 +++--------------- .../staging/rtl8723bs/hal/rtl8723b_phycfg.c | 2 - .../staging/rtl8723bs/hal/rtl8723b_rxdesc.c | 3 - .../staging/rtl8723bs/hal/rtl8723bs_recv.c | 15 +- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 19 +- drivers/staging/rtl8723bs/hal/sdio_ops.c | 39 +-- drivers/staging/rtl8723bs/include/autoconf.h | 7 - drivers/staging/rtl8723bs/include/rtw_debug.h | 10 - .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 216 +------------- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 6 - drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 35 +-- 20 files changed, 69 insertions(+), 679 deletions(-) -- 2.20.1