Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp640798pxb; Thu, 15 Apr 2021 03:08:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9R9MkbNPlQFa3aA2zkJtSFkZKq7V+cgmtqOPXj4VxhS8qjbMPj6LH6hIohFTHs/IK5Dkr X-Received: by 2002:a05:6402:54f:: with SMTP id i15mr3175209edx.365.1618481328638; Thu, 15 Apr 2021 03:08:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618481328; cv=none; d=google.com; s=arc-20160816; b=zFr+/SZMhou/f5TggtU5GQRucbhb/Ysg6oyjS9R4Zsxa+q+tdsrCxk2R8Mf4nlw1Eg VD4fx2x596XctDAl8uBLfSIQt6lskuo0ON4o6L2pjY2Y7c18TVYUj4KpuJiyXr7tdeJM DcAJvPAryKEcuk3Vxxct6Q+fFGGHyJ1RS2yasDRjIyyMvbib9fiarsmj2z6zq7tK9gu7 LjZUQHp2uysZUpdw4nWfz0ZzlDZorCm5KVYx4njh9d176F4mMc1Qq1GWfn+9Tuv5Z4s5 I20P/kv9Z8NnySaXn9gtR+2JiKrr3l0/8c1/Z+E4rV6/a6uMCpGZgwIDG4UTQZhu7+yI W6lA== 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=4qZemfQU/4MJfHXgxFlv8W+uvkCx98FuAwucXkOVDCo=; b=mPm2KWyVGQJK3YuLnrW1hNoVT6/2A2DZYM/OByBdyMtBibaLeOUWH5Ty6a6SXpY3nb 9b7vXlM9gzrxYNTc34aSiURwelTHSMmHur34i7LV6WJ1NY3MER10+qDQOz0+bulZ927c bbH5pjDqXveSvKd/iyPvKzrl5t3r+f6LQfTvhLYdfxJtPGTLQPN2gQkmgIDKrlnQrrlZ CSEV9w+203+LRvfhSDXoMbObIkcjCB7SNrLGL5lgY/pdfvIg+w2y0D7cdlaM2H5zIaSP VWBLdoieJ/eUj0bsAoryhCOLkxiz9KLDxNHyMvfd/u52LpRtT62FpdM4+R4kCS8Ud4qg n3ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Rf+M/rd1"; 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 be12si2124615edb.159.2021.04.15.03.08.26; Thu, 15 Apr 2021 03:08:48 -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="Rf+M/rd1"; 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 S232262AbhDOKHx (ORCPT + 99 others); Thu, 15 Apr 2021 06:07:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231251AbhDOKHu (ORCPT ); Thu, 15 Apr 2021 06:07:50 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1A42C061574 for ; Thu, 15 Apr 2021 03:07:27 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id w186so7622439wmg.3 for ; Thu, 15 Apr 2021 03:07:27 -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=4qZemfQU/4MJfHXgxFlv8W+uvkCx98FuAwucXkOVDCo=; b=Rf+M/rd1eDo3FZLjaBf8zESvy3i0z/QB5GXK6qWZvpVhUlJNfuuYhK2BNze3mfQ4aZ s0vXXfYhwsLxAM5cFoDihF3Nn7yoFtUB87Y0uUKYCTq1nkCkfVUIok7EVB5WO2rRv7F9 Avs7/gB4oNoPMeYBVSdw3h1KAD3Ic7Q8ss3SOiyq3GmVfUBOGpGp/d6rO+R0cObzwV0A BGO+yB6ZzyfPrftqdmL+D4ONMuRfEjh8agC/UEkr7xFRaD+KvvCXcn2mDkMGrhRMUrC0 fP04469b7e2j0mu7X82VVgoxy6nyletjDJ3C6c/JSLHcmvVnM+QrCg+hmpyYNPGZ3nGZ RiJQ== 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=4qZemfQU/4MJfHXgxFlv8W+uvkCx98FuAwucXkOVDCo=; b=bTtE+TN0J0w8/K7VP82bqmWQeoKPiVHzTlF6laZEQp4et1Ql80XSGSH4xzdpoS3AXe X8j1M+VgNYVyQ1wSYMWijTgahAy9ET14dm28p1VVGqIAm6oko5BvldEeQG2swqPmOGqR s0PoyEDFEN7HpKqlUHvUOjy4IXsdW+Hp/W7wj3+ZVDPgTnV+ZZ1v8F7ZSckLUmHQiZSe ZA3AqALXgw502BbFRijHiVIiX6alqYUw8mOHP2Mbf9qvR3MuWmpmix24VtR65q5citfg aFZFnHNRqPtwohE4WWlJ9U0ij41pjop4jgWcSa6q047UaKi9qM91Qb8HgEQFUrOVI+nG 1k8A== X-Gm-Message-State: AOAM5320ZH/QxlLq2ZC1dl3hfToYLKewuI4AxtipI4pbcHYBQN5Y84DK t1vXKyfmYZR0QIcqjVxEf7Hq7gZVeQk= X-Received: by 2002:a7b:c2fa:: with SMTP id e26mr2371477wmk.118.1618481246214; Thu, 15 Apr 2021 03:07:26 -0700 (PDT) Received: from agape ([5.171.72.223]) by smtp.gmail.com with ESMTPSA id j30sm2309293wrj.62.2021.04.15.03.07.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Apr 2021 03:07:25 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] remove DBG_871X_LEVEL macro Date: Thu, 15 Apr 2021 12:07:18 +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 removes DBG_871X_LEVEL macro. It does a raw printk so replace it with the more recommended netdev_*() functions. Removal and replacement is done with the following semantic patch: @@ expression list args; identifier padapter; identifier func; symbol _drv_always_, _drv_info_, _drv_warning_; symbol _drv_err_, _drv_emerg_; @@ func(..., struct adapter *padapter, ...) { <... ( - DBG_871X_LEVEL(_drv_always_, args); + netdev_dbg(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_info_, args); + netdev_info(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_warning_, args); + netdev_warn(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_err_, args); + netdev_err(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_emerg_, args); + netdev_emerg(padapter->pnetdev, args); ) ...> } @rule@ identifier func, context, padapter; @@ func(void *context) { ... struct adapter *padapter = context; ... } @@ expression list args; identifier rule.padapter; identifier rule.func, rule.context; @@ func(void *context) { <... ( - DBG_871X_LEVEL(_drv_always_, args); + netdev_dbg(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_info_, args); + netdev_info(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_warning_, args); + netdev_warn(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_err_, args); + netdev_err(padapter->pnetdev, args); | - DBG_871X_LEVEL(_drv_emerg_, args); + netdev_emerg(padapter->pnetdev, args); ) ...> } @@ expression list args; expression get_dev; identifier func, dev; @@ func(...) { ... struct net_device *dev = get_dev; <... ( - DBG_871X_LEVEL(_drv_always_, args); + netdev_dbg(dev, args); | - DBG_871X_LEVEL(_drv_info_, args); + netdev_info(dev, args); | - DBG_871X_LEVEL(_drv_warning_, args); + netdev_warn(dev, args); | - DBG_871X_LEVEL(_drv_err_, args); + netdev_err(dev, args); | - DBG_871X_LEVEL(_drv_emerg_, args); + netdev_emerg(dev, args); ) ...> } @@ expression list args; identifier func, dev; @@ func(struct net_device *dev) { <... ( - DBG_871X_LEVEL(_drv_always_, args); + netdev_dbg(dev, args); | - DBG_871X_LEVEL(_drv_info_, args); + netdev_info(dev, args); | - DBG_871X_LEVEL(_drv_warning_, args); + netdev_warn(dev, args); | - DBG_871X_LEVEL(_drv_err_, args); + netdev_err(dev, args); | - DBG_871X_LEVEL(_drv_emerg_, args); + netdev_emerg(dev, args); ) ...> } @@ expression list args; identifier func, dvobj; @@ func(struct dvobj_priv *dvobj) { <... ( - DBG_871X_LEVEL(_drv_always_, args); + netdev_dbg(dvobj->if1->pnetdev, args); | - DBG_871X_LEVEL(_drv_info_, args); + netdev_info(dvobj->if1->pnetdev, args); | - DBG_871X_LEVEL(_drv_warning_, args); + netdev_warn(dvobj->if1->pnetdev, args); | - DBG_871X_LEVEL(_drv_err_, args); + netdev_err(dvobj->if1->pnetdev, args); | - DBG_871X_LEVEL(_drv_emerg_, args); + netdev_emerg(dvobj->if1->pnetdev, args); ) ...> } @@ @@ - DBG_871X_LEVEL(...); Some code cleaning done as well. Fabio Aiuto (6): staging: rtl8723bs: replace DBG_871X_LEVEL logs with netdev_*() staging: rtl8723bs: fix code indent issue staging: rtl8723bs: fix indentation in if block staging: rtl8723bs: split too long line staging: rtl8723bs: remove unused DBG_871X_LEVEL macro declarations staging: rtl8723bs: remove empty #ifdef block drivers/staging/rtl8723bs/core/rtw_cmd.c | 30 +++++--- drivers/staging/rtl8723bs/core/rtw_io.c | 4 +- .../staging/rtl8723bs/core/rtw_ioctl_set.c | 10 +-- drivers/staging/rtl8723bs/core/rtw_mlme.c | 3 +- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 72 ++++++++++++------- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 9 ++- drivers/staging/rtl8723bs/core/rtw_security.c | 40 +++++++---- .../staging/rtl8723bs/core/rtw_wlan_util.c | 21 +++--- drivers/staging/rtl8723bs/core/rtw_xmit.c | 2 +- drivers/staging/rtl8723bs/hal/hal_com.c | 26 ++++--- .../staging/rtl8723bs/hal/rtl8723b_hal_init.c | 4 +- .../staging/rtl8723bs/hal/rtl8723bs_xmit.c | 14 ++-- drivers/staging/rtl8723bs/hal/sdio_ops.c | 3 +- drivers/staging/rtl8723bs/include/rtw_debug.h | 14 ---- .../staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 8 ++- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 2 +- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 32 +++++---- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 15 +--- 18 files changed, 181 insertions(+), 128 deletions(-) -- 2.20.1