Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp886256rdf; Tue, 21 Nov 2023 22:16:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFj5Bp4QPPuHlH6dlJpeo7hcXqz0ktkJjj8J3Tcnle38hbs7n22/hlew2proh8TipM/YO1h X-Received: by 2002:a17:902:7795:b0:1cc:b71:c96f with SMTP id o21-20020a170902779500b001cc0b71c96fmr1190055pll.41.1700633797567; Tue, 21 Nov 2023 22:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700633797; cv=none; d=google.com; s=arc-20160816; b=j+8VnJFIryi+bMF6GK2ePhf1ldw1xjSYaavwBpIqPT+vLe0EbCMg84j6Bt3mZTi/sU X8S0HsP/YTZjv9awWy1+S+YXRq3wuycFhDrsYAnaCYqTuXeS5WspumuLv/L7LtV2I9zU SCjV4Fvc8zOTKW1j222mBkpYDXW1gxe9nsmQiXUFsMhOhdLZ9yuImDl2ID9Pkw8fkkiN LIIj7yTr7d9y+BZnCkRiS+V1VqFBW6DD6gi781B8q68K2Z+Wpyb6oKQax7Vnw27Zq4Tj Jo0BNfjRwxAeTiqhWNgpf5pQ/DCMmfAXbAwpjY191tt6UuzIZpLxaOUViKS/BbAQQI7O lKGg== 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; bh=TxI90Ylut3uhjUhtb1AJe+oxiCxiUoH0rOxBu0VY220=; fh=119R0DZRwIns1LRpqAK2A6izyPVjL4TEe6VydCwW0T8=; b=QNWogfxUo/fcuJ19SxLfW5cxrzdJ8qI6xpsNkvvsTnuD/plUgvLQ56/hn7zhTuLPm4 ovLt5sfXaW++bzBhdZW2e9+Y3MUqEY+Kyd2tG4NqNykzUd302l5GaEmxo0KY3LvzEs3m CqWg9B6NVa7DjenfwdUKSye3HLx1Y7lR3ZtwYC8tgJA9ojSJDC8HcLWFxR7m41ZkaAgM /bEYdu8HwpgBadknPCQhAo4hTjUSyj1N27t+Lt09T8W/U8jV/ZHSqRYiRy0Uf3pPf2ju XoLsR99mQjgpzDzQZaAQHqYzAMb0iO8y/Gs+Y6XIpkdEvbqtijmcFO/XuFOS7HenYUb9 q/TQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bj12-20020a170902850c00b001c5fb45613dsi11210126plb.318.2023.11.21.22.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 22:16:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 153D8804EE68; Tue, 21 Nov 2023 22:15:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229631AbjKVGPf (ORCPT + 54 others); Wed, 22 Nov 2023 01:15:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjKVGPe (ORCPT ); Wed, 22 Nov 2023 01:15:34 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1F851A4 for ; Tue, 21 Nov 2023 22:15:28 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AM6FK9k82081039, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AM6FK9k82081039 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Nov 2023 14:15:20 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Wed, 22 Nov 2023 14:15:20 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 22 Nov 2023 14:15:20 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH] wifi: rtw88: debug: remove wrapper of rtw_dbg() Date: Wed, 22 Nov 2023 14:14:29 +0800 Message-ID: <20231122061429.34487-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.94] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 22:15:35 -0800 (PST) Remove unnecessary wrapper of rtw_dbg(), and just call it directly. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw88/debug.c | 6 +++--- drivers/net/wireless/realtek/rtw88/debug.h | 6 ++---- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/debug.c b/drivers/net/wireless/realtek/rtw88/debug.c index 35bc37a3c469..1b2ad81838be 100644 --- a/drivers/net/wireless/realtek/rtw88/debug.c +++ b/drivers/net/wireless/realtek/rtw88/debug.c @@ -1314,8 +1314,8 @@ void rtw_debugfs_init(struct rtw_dev *rtwdev) #ifdef CONFIG_RTW88_DEBUG -void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, - const char *fmt, ...) +void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, + const char *fmt, ...) { struct va_format vaf = { .fmt = fmt, @@ -1330,6 +1330,6 @@ void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, va_end(args); } -EXPORT_SYMBOL(__rtw_dbg); +EXPORT_SYMBOL(rtw_dbg); #endif /* CONFIG_RTW88_DEBUG */ diff --git a/drivers/net/wireless/realtek/rtw88/debug.h b/drivers/net/wireless/realtek/rtw88/debug.h index a03ced11bbe0..f20c0471c82a 100644 --- a/drivers/net/wireless/realtek/rtw88/debug.h +++ b/drivers/net/wireless/realtek/rtw88/debug.h @@ -43,10 +43,8 @@ static inline void rtw_debugfs_init(struct rtw_dev *rtwdev) {} #ifdef CONFIG_RTW88_DEBUG __printf(3, 4) -void __rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, - const char *fmt, ...); - -#define rtw_dbg(rtwdev, a...) __rtw_dbg(rtwdev, ##a) +void rtw_dbg(struct rtw_dev *rtwdev, enum rtw_debug_mask mask, + const char *fmt, ...); static inline bool rtw_dbg_is_enabled(struct rtw_dev *rtwdev, enum rtw_debug_mask mask) -- 2.25.1