Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp251934rdb; Thu, 16 Nov 2023 19:06:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IG08DHmLiGRc1jx3OEpiNe2muPpHMUlgKVwpURd9xWPfEffLxZp6HFttevxkRy00+BCyO66 X-Received: by 2002:a05:6871:8802:b0:1f0:b2a:768a with SMTP id te2-20020a056871880200b001f00b2a768amr19696964oab.8.1700190370578; Thu, 16 Nov 2023 19:06:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700190370; cv=none; d=google.com; s=arc-20160816; b=pHxaTRsZyITN/+zXKq231qMW/lgZdVkiWXCXNp43N/9XJl9kHH761eIIMHlPawNZZz 3Usw5q9GI0eBSgc3pUEljydJxPRNmJhRNDLUhjSpsMJ1OaeVDsWxwnBrVzw7O7iiOyCe /fkdeDjfAIkBTKbVubXv1Dei2naWgft2x4DpELP5tmWnG367lErH4u4GZ+XKzDKVYMzj PwPGApVhmIkTlYULUDDE4zzNENFM4/gSneEsb0IigocYBVjaDpkvbOblKdE+X728mQVh 6jNY+BU7Q0OGj1Px3a2GgKvC8hNKenFX0RQ0itPR1cZ48/96WrX3K1SMA6Kej0Q0FMGo NFnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=V46Bp77piVgt30J5c1ct6M3NESfa+T6WZV8MlD1as1Y=; fh=2hI485HFlXJy+4lLjgPX5/GYVcxclaS/2eVblZtiuKQ=; b=CS9JWXD96XdOp5viAJgoY6y/+tMfkl9PpwLjVY3YHF+l6Bxyi9WboYt1bSmq69q8Vi nm1ovfErk+8omP4gLW2zJD8wiGurbinZM6C7hkf8uZSTSwu6If97oqBfu+zowW35QuRG YndVuDxsWGNXRZATwJ3UwaUxqz+zToikx/hzB8pQlvYcGY4Mc2Cz+t1NPIL/xgELMdSm agucT7Jiap4dkVWUBgw6HUpAoBNOKBmVFzCJ/EAwD6/fNTsbNOdNcznVNbmdayeu2uC9 O5KtAMzr5nu18gvVjuaRU6/DhGHVa4n44rOPmNwZ8VkWQUpb3vA6pFObgsTRvN+W7GaD Zaaw== 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:3 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id z4-20020a626504000000b006b1fec25a82si856921pfb.403.2023.11.16.19.06.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 19:06:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id C432C8092690; Thu, 16 Nov 2023 19:05:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229723AbjKQDF7 convert rfc822-to-8bit (ORCPT + 53 others); Thu, 16 Nov 2023 22:05:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKQDF6 (ORCPT ); Thu, 16 Nov 2023 22:05:58 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B3249F for ; Thu, 16 Nov 2023 19:05:55 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AH35eOsA2832665, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AH35eOsA2832665 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Nov 2023 11:05:40 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Fri, 17 Nov 2023 11:05:40 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS02.realtek.com.tw (172.21.6.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 17 Nov 2023 11:05:40 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Fri, 17 Nov 2023 11:05:40 +0800 From: Ping-Ke Shih To: Dmitry Antipov CC: Kalle Valo , "linux-wireless@vger.kernel.org" , "lvc-project@linuxtesting.org" Subject: RE: [PATCH 1/2] wifi: rtlwifi: more cleanup for struct rtl_hal Thread-Topic: [PATCH 1/2] wifi: rtlwifi: more cleanup for struct rtl_hal Thread-Index: AQHaFkCHTBsHuqTCt0G6N7QDezkgG7B9173Q Date: Fri, 17 Nov 2023 03:05:40 +0000 Message-ID: <0dbc9bb6820d4efba40af93f14ef5418@realtek.com> References: <20231113144734.197359-1-dmantipov@yandex.ru> In-Reply-To: <20231113144734.197359-1-dmantipov@yandex.ru> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-originating-ip: [172.21.69.94] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 16 Nov 2023 19:05:58 -0800 (PST) > -----Original Message----- > From: Dmitry Antipov > Sent: Monday, November 13, 2023 10:47 PM > To: Ping-Ke Shih > Cc: Kalle Valo ; linux-wireless@vger.kernel.org; lvc-project@linuxtesting.org; Dmitry > Antipov > Subject: [PATCH 1/2] wifi: rtlwifi: more cleanup for struct rtl_hal > > Following commit d1e6b020c32d ("wifi: rtlwifi: cleanup struct rtl_hal"), > remove unused 'hal_coex_8723', 'current_bandtypebackup', 'master_of_dmsp' > and 'slave_of_dmsp' members of 'struct rtl_hal' as well. Compile tested > only. > > Signed-off-by: Dmitry Antipov > --- > drivers/net/wireless/realtek/rtlwifi/wifi.h | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h > index 171a461cd812..33c3e001266f 100644 > --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h > +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h > @@ -1605,7 +1605,6 @@ struct rtl_hal { > bool being_init_adapter; > bool mac_func_enable; > bool pre_edcca_enable; > - struct bt_coexist_8723 hal_coex_8723; In drivers/net/wireless/realtek/rtlwifi/rtl8723ae/hal_btc.c, it does a global static variable: static struct bt_coexist_8723 hal_coex_8723; That's not a good practice. It would be better to use the field you are removing. To prevent wasting space, we can dynamically allocate the space when 8723AE is presented only. Note, I don't have this old module 8723AE, so even you achieve the patch, I can't test it on a real hardware.