Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp883270rdf; Tue, 21 Nov 2023 22:08:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IF04aiugEDAdGn+NQpyLS4V7bXGlZjsNVvacNQy7UsY1E1og55ZPXG4/fc+Xw/Z2w0Vqj8C X-Received: by 2002:a05:6808:bd6:b0:3b2:e520:dfab with SMTP id o22-20020a0568080bd600b003b2e520dfabmr1890389oik.44.1700633333853; Tue, 21 Nov 2023 22:08:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700633333; cv=none; d=google.com; s=arc-20160816; b=Q8pAfkIL3vl4sIUOiIu6EO2xTsPXKrNoIOtHzzTiWoU+5Lz5YCidOOMxjRsT/2cIvD AUdCerFqykh0sKFODrB8b9AZYjwGD4abh3s8YUNX2TNDh+XJ7EQ+kLeKdxVtLiZZH6Zw L4u79yRMHSKsl+w959JlP0BKEOhFWhqpzidtypB4tZ2oC3/onWvKZ71MiEI3cTjy3j8Q 9oSWWMPBTknAQOzdVa/R+9BjWu5zHqqF3TXcv9K8Xjc6bc8NQXK5V82ClTz3kHfL4BGq vPjoNf33tBXb7TpWbWUaPUipklF6LoUuDIuAuMi62vJkCixORGmZj8ieGcueoRodd4Vy LnuQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WIOh0ypQSN8t9yzwhdJrhc+7UxVw5Elr/X6k8M1EoTM=; fh=Yhg3/DrKkR4Hs3egnKzF2Sj5quBOazakYbmcsFQvz8A=; b=GPhbNNS5fJTjGTd6wcsE0z4Lg58+VXKdpct6X2UpiLtQB41/o9n3mrV3ibDHvRoYCW gTBemSiKTsZPsSGep4676Rvqt7T66jTp7jmpONdw7Kav3snBhIEZUdpyEr/Iu1Efs7zn 7c0PhZe57pLdzhIRJHl7NumTgOFjPqSwcOHnN2pP4iR0dDQ3IPL7t0NFWLAyBCDWeeTz 9sk7U3WWNYbMkvTChLp84jiftoxDomRWGu3UseO9HBs3QXek0ugLbLBR5YBWY/5ooC2/ BkX3dB2ngZ75wzG7yRWyB/oizWDzfOcbWof1fehZoPRnU2CofWQk9ewcwmjfPpN+bOrS jxNA== 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:7 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c6-20020a056a000ac600b006c34752a6e8si8724195pfl.81.2023.11.21.22.08.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 22:08:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id AFBDC8031B10; Tue, 21 Nov 2023 22:06:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234597AbjKVGGQ (ORCPT + 54 others); Wed, 22 Nov 2023 01:06:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229561AbjKVGGM (ORCPT ); Wed, 22 Nov 2023 01:06:12 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95A641A4 for ; Tue, 21 Nov 2023 22:06:08 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AM662c442079027, 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 3AM662c442079027 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 22 Nov 2023 14:06:02 +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:06:02 +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:06:02 +0800 From: Ping-Ke Shih To: CC: , Subject: [PATCH 4/4] wifi: rtw89: debug: remove wrapper of rtw89_debug() Date: Wed, 22 Nov 2023 14:04:58 +0800 Message-ID: <20231122060458.30878-5-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231122060458.30878-1-pkshih@realtek.com> References: <20231122060458.30878-1-pkshih@realtek.com> 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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Tue, 21 Nov 2023 22:06:27 -0800 (PST) The wrapper of rtw89_debug() is unnecessary, so just remove it. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/debug.c | 7 +++---- drivers/net/wireless/realtek/rtw89/debug.h | 6 ++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw89/debug.c b/drivers/net/wireless/realtek/rtw89/debug.c index f914c0750576..9780af8e296d 100644 --- a/drivers/net/wireless/realtek/rtw89/debug.c +++ b/drivers/net/wireless/realtek/rtw89/debug.c @@ -3947,9 +3947,8 @@ void rtw89_debugfs_init(struct rtw89_dev *rtwdev) #endif #ifdef CONFIG_RTW89_DEBUGMSG -void __rtw89_debug(struct rtw89_dev *rtwdev, - enum rtw89_debug_mask mask, - const char *fmt, ...) +void rtw89_debug(struct rtw89_dev *rtwdev, enum rtw89_debug_mask mask, + const char *fmt, ...) { struct va_format vaf = { .fmt = fmt, @@ -3965,5 +3964,5 @@ void __rtw89_debug(struct rtw89_dev *rtwdev, va_end(args); } -EXPORT_SYMBOL(__rtw89_debug); +EXPORT_SYMBOL(rtw89_debug); #endif diff --git a/drivers/net/wireless/realtek/rtw89/debug.h b/drivers/net/wireless/realtek/rtw89/debug.h index a4cdc3c8c622..800ea59873a1 100644 --- a/drivers/net/wireless/realtek/rtw89/debug.h +++ b/drivers/net/wireless/realtek/rtw89/debug.h @@ -59,12 +59,10 @@ static inline void rtw89_debugfs_init(struct rtw89_dev *rtwdev) {} #ifdef CONFIG_RTW89_DEBUGMSG extern unsigned int rtw89_debug_mask; -#define rtw89_debug(rtwdev, a...) __rtw89_debug(rtwdev, ##a) __printf(3, 4) -void __rtw89_debug(struct rtw89_dev *rtwdev, - enum rtw89_debug_mask mask, - const char *fmt, ...); +void rtw89_debug(struct rtw89_dev *rtwdev, enum rtw89_debug_mask mask, + const char *fmt, ...); static inline void rtw89_hex_dump(struct rtw89_dev *rtwdev, enum rtw89_debug_mask mask, const char *prefix_str, -- 2.25.1