Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2868041pxb; Tue, 13 Apr 2021 12:10:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxs4o3YGH62ARyWKksWogPcrbVC5AoSUw1QT5tRGvFTl8BQmtR1bsMwh8mFiAu2O0VPrJQg X-Received: by 2002:a17:907:3f20:: with SMTP id hq32mr26814691ejc.226.1618341059740; Tue, 13 Apr 2021 12:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618341059; cv=none; d=google.com; s=arc-20160816; b=lviGORDCOhy32SCrEZD73Jt1HvCkNZ00167Twd0DlLRJPfQwdbvqJfIoZHIEiTufn3 l22+VSXUf/g3qYTgjeiDol47V+6Fx9lX76aM7Aty+bTmb3CkR5wWTWFm4XrfZnzypukt rdRGiDVnR8G0AhqHqDTdYnF3iTWMDOe2wCjhIQkb9a1BHUXEQUXuprElPoRyoK7tctOr 8XEV6MCof0EqXtG7u/zrxv4+zDOGaXEB2bFUwXSXaPAAPq/dcdeZiyPFnSgrgGffyI2z Tw40J2mO0aZVHQL3KtnL+NNkm2AC0ix/0r5xf0nmzNErIltlWlA3sBM71hOiF5IGb4m7 YK1A== 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=pgwrWrlifftIaaqyW67bp+zxPHy7WgjYbjTjOxGlaD4=; b=nmVPDKGSNW9mUUeQmUcjmeWrZ/JJeLO0HpsG2MeiOJ59ZxPLDuQ/4LDHuRal9wRXkK PzXHqs1TpxSGFTadwpvFR4GO2Y4aN6jpD9FBBM5wrxDGbtCIa9JFopYuEW7ayNZyy5cD 5z4ei3q0SFVAVwNAtBhBmXhxJVzdj6Knx8yeSkVmseSyKl9ihDc/HGLKDcM4Ny1DVFmF mNLwWWlu1ZPsvN3R8Eog4RCZs3WrEaHnpEkpSR2oklp05mfL4IU/leyFETURorlXqLAQ 2UxbOamxjrdJKeuNRLZQS8PhAGZ4AFLZgjfPy2HrDIOR+KdBxUktTItLPU/IycxiSGWl TUxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nRAW0K8g; 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 d16si9376153edz.507.2021.04.13.12.10.36; Tue, 13 Apr 2021 12:10:59 -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=nRAW0K8g; 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 S238852AbhDMO5A (ORCPT + 99 others); Tue, 13 Apr 2021 10:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231378AbhDMO47 (ORCPT ); Tue, 13 Apr 2021 10:56:59 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C538AC061574 for ; Tue, 13 Apr 2021 07:56:38 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id z24-20020a1cf4180000b029012463a9027fso8907610wma.5 for ; Tue, 13 Apr 2021 07:56:38 -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=pgwrWrlifftIaaqyW67bp+zxPHy7WgjYbjTjOxGlaD4=; b=nRAW0K8gyjq8qELCQBOA1ymAfqbX1KXYxtMFG8pSfiZtINch9BYwnzFe2B46+OZwFR ihXVO3j9hBhj4uanuLdbeIK/sHWJkA+k4vFo53wU5dujAlVStGd7our3wygOkQCWC39z PGHSv2VAEurpMUzNGWoNdyXcEYfntNSCbtoHR8sUmNKxcD5JzYpR+UfZJq2DYTkfOcA0 frsY/dHeMhueg7B5U3UtM+WYcGHb2O/3FX6dpfYsRiOQsZRQ5LLFR0PbemcyAYMN2jpU 8yvb5zItbQajom2EnlK+V80LWyHA3wvdnwptFt0p/W40cHYF8V3YYKzWZChUdEjzggJ+ mMaA== 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=pgwrWrlifftIaaqyW67bp+zxPHy7WgjYbjTjOxGlaD4=; b=f1UJ8cQM5G73cooqer+Ia8TlCEHJ9wdJnRjLQ3K+POlofmMiskxQAHhP5Ug6hZs3m8 Z5zbKGQ79Ai5/NgTFmgED90wG9hQoNTCBPzEpEMNg1lpWFDDgwlUYOSmlBpHazwokU33 3rE/kkxzwNUPGkATV9TaOx7WQoqp5acxns7wjy3V6UN4qpl20M6bAcwn0NcHr/a0ptHX 71dnQZD0wfteef3Ha7XnPaPQQsMUiVmPBLpjY7+AZziZMoDg2A0/1Y4lUmvi9LAh3akq b12+YrpWFj8RL4Rh0873/a/5Fl+IMazt8y6nboxAfDCpV17HV4QToOpIcr61yosE5uSL QXSg== X-Gm-Message-State: AOAM5331ACUSHBWSmYKinO+F7LaFHUsVTT6NKQhcpToAQ//vFcd6NXFF N3xBOX2ebTvH4uKh/CdVb84wqNJrA9uM+A== X-Received: by 2002:a05:600c:4142:: with SMTP id h2mr386404wmm.87.1618325797327; Tue, 13 Apr 2021 07:56:37 -0700 (PDT) Received: from agape ([5.171.81.171]) by smtp.gmail.com with ESMTPSA id l9sm2470904wmq.2.2021.04.13.07.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Apr 2021 07:56:37 -0700 (PDT) From: Fabio Aiuto To: gregkh@linuxfoundation.org Cc: julia.lawall@inria.fr, joe@perches.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] staging: rtl8723bs: replace DBG_871X_SEL_NL macro with netdev_dbg() Date: Tue, 13 Apr 2021 16:56:28 +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 replaces DGB_871X_SEL_NL macro with the driver recommended log function netdev_dbg(). Macro DBG_871X_SEL_NL indeed executes a raw printk call as default behaviour. The other behaviour is doing a seq_printf() call which never occurs. First patch replace dump_drv_version with a netdev_dbg() call. Second patch remove an unnecessary dump_drv_version() usage. Third patch removes dump_drv_version() now unused and unused dump_log_level() as well Fourth patch apply the following coccinelle script for macro bulk replacement: @@ expression sel; expression list args; identifier padapter; identifier func; @@ func(..., struct adapter *padapter, ...) { <... - DBG_871X_SEL_NL(sel, args); + netdev_dbg(padapter->pnetdev, args); ...> } Fifth patch fixes a post commit checkpatch issue left by coccinelle output. Sixth patch removes DBG_871X_SEL_NL macro declaration. Seventh patch removes an unused function argument after macro replacement. Fabio Aiuto (7): staging: rtl8723bs: replace dump_drv_version() usage with netdev_dbg() staging: rtl8723bs: remove unnecessary dump_drv_version() usage staging: rtl8723bs: remove two unused functions staging: rtl8723bs: replace DBG_871X_SEL_NL with netdev_dbg() staging: rtl8723bs: put a new line after ';' staging: rtl8723bs: remove DBG_871X_SEL_NL macro declaration staging: rtl8723bs: remove unused argument in function drivers/staging/rtl8723bs/core/rtw_debug.c | 26 +++------- drivers/staging/rtl8723bs/core/rtw_odm.c | 52 ++++++++++--------- drivers/staging/rtl8723bs/hal/hal_com.c | 31 +++++------ drivers/staging/rtl8723bs/include/rtw_debug.h | 12 ----- drivers/staging/rtl8723bs/include/rtw_odm.h | 2 +- .../staging/rtl8723bs/os_dep/ioctl_linux.c | 4 +- drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 1 - 7 files changed, 51 insertions(+), 77 deletions(-) -- 2.20.1