Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1576411iob; Fri, 29 Apr 2022 08:14:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUnsID7/bwKC0uisLCi1W8j/iJgUGrfkPpDiISTgZy+XkVQhbzmzsaIhCy6LPt0quQmnNi X-Received: by 2002:a17:902:8643:b0:158:93aa:91a7 with SMTP id y3-20020a170902864300b0015893aa91a7mr39353982plt.38.1651245247775; Fri, 29 Apr 2022 08:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651245247; cv=none; d=google.com; s=arc-20160816; b=l/UctRMQa4BSBFcloxoq1cFQTplM8eDF68XuoFtR78pKkr5Zqlwd78S6z3NxAH5y5D mJ+3QeojJteoarGzCvSXnTPxj0zqrC45rZdHPLty7y8LgzkaRVNzlNSYx15MAbT/7o08 MGnEl/xmYx3Lnty8L/EFnhtksG8HjFoXVuIbTl5jvhArG2kYmsU+AF4tal3c4ULAgriW E6UUXnhR/+8bx3ptBBaKOjuVmYCPdCJFyeYQmJ5fXzMqoLwuHOXJa7/ZKXdEQKXCc7Ms z3+aN/ByLYJLgw2BV3cn5T2wAbQp92JKM75E9Ql6QDeMW+0Tpxwj/61ZA/zuKwcEqwDO SHeg== 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:authenticated-by; bh=/XBhq3PF81S0/oFNlSAhIyzPVMf38rtYaGRWRJgnm6M=; b=QO+g/X+Jh42FFvUBJEI7H3w4ogv3ujjsXpDk2oupklbThUdpEEDN94ZfwYqGwfGczd JPHjZPNea3SiJptv5XJu/+bDbqIZ3JP6uLEf+nK+PXK8LjAqWD6cD7nWPo48CzErNRBE 6lqsDMCfEQoYYRgoMpjzogcGEP0c+i6Gw6hUWCUgZkijFlGnabHfFrYge/2aWFfF68/w jFE1jaBon/FVgK2+clVwEN4H9i4xL0TRD13tV8UdK44c/J4M7OSOHUFxvpdP2I7hvf+g qCED2+KkJ6ttnwYO5hZX1GD4/py8kSIDg6kwQOR6KIuUCSWFIRut0+VehZS8RcErU7d4 InjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170902a50400b0015cf359df8dsi6792457plq.258.2022.04.29.08.13.53; Fri, 29 Apr 2022 08:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355168AbiD2H31 convert rfc822-to-8bit (ORCPT + 68 others); Fri, 29 Apr 2022 03:29:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345193AbiD2H3Z (ORCPT ); Fri, 29 Apr 2022 03:29:25 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 14AA0B7175 for ; Fri, 29 Apr 2022 00:26:06 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 23T7PHmL4002953, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36504.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 23T7PHmL4002953 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 29 Apr 2022 15:25:18 +0800 Received: from RTEXMBS02.realtek.com.tw (172.21.6.95) by RTEXH36504.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.2308.27; Fri, 29 Apr 2022 15:25:17 +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.2308.27; Fri, 29 Apr 2022 15:25:17 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::34e7:ab63:3da4:27c6]) by RTEXMBS04.realtek.com.tw ([fe80::34e7:ab63:3da4:27c6%5]) with mapi id 15.01.2308.021; Fri, 29 Apr 2022 15:25:17 +0800 From: Pkshih To: Kalle Valo CC: kernel test robot , "llvm@lists.linux.dev" , "kbuild-all@lists.01.org" , "linux-wireless@vger.kernel.org" Subject: RE: [PATCH 15/15] rtw89: 8852c: add 8852ce to Makefile and Kconfig Thread-Topic: [PATCH 15/15] rtw89: 8852c: add 8852ce to Makefile and Kconfig Thread-Index: AQHYWTevDaEDmvkQB06rbly2/np5Fa0FjE4AgADUjrCAAAdoJIAAGCUg Date: Fri, 29 Apr 2022 07:25:17 +0000 Message-ID: <3e05c7bab2e9406789fdf483e09bb85e@realtek.com> References: <20220426063235.41650-16-pkshih@realtek.com> <202204290830.slUaIhad-lkp@intel.com> <877d78fnbv.fsf@kernel.org> In-Reply-To: <877d78fnbv.fsf@kernel.org> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS02.realtek.com.tw, 9 x-kse-attachmentfiltering-interceptor-info: no applicable attachment filtering rules found x-kse-antivirus-interceptor-info: scan successful x-kse-antivirus-info: =?us-ascii?Q?Clean,_bases:_2022/4/29_=3F=3F_06:00:00?= x-kse-bulkmessagesfiltering-scan-result: protection disabled Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36504.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 > -----Original Message----- > From: Kalle Valo > Sent: Friday, April 29, 2022 1:53 PM > To: Pkshih > Cc: kernel test robot ; llvm@lists.linux.dev; kbuild-all@lists.01.org; > linux-wireless@vger.kernel.org > Subject: Re: [PATCH 15/15] rtw89: 8852c: add 8852ce to Makefile and Kconfig > > Pkshih writes: > > >> -----Original Message----- > >> From: kernel test robot > >> Sent: Friday, April 29, 2022 8:46 AM > >> To: Pkshih ; kvalo@kernel.org > >> Cc: llvm@lists.linux.dev; kbuild-all@lists.01.org; linux-wireless@vger.kernel.org > >> Subject: Re: [PATCH 15/15] rtw89: 8852c: add 8852ce to Makefile and Kconfig > >> > >> Hi Ping-Ke, > >> > >> I love your patch! Perhaps something to improve: > >> > >> [auto build test WARNING on wireless-next/main] > >> [also build test WARNING on next-20220428] > >> [cannot apply to wireless/main v5.18-rc4] > >> [If your patch is applied to the wrong git tree, kindly drop us a note. > >> And when submitting patch, we suggest to use '--base' as documented in > >> https://git-scm.com/docs/git-format-patch] > >> > >> url: > >> > https://github.com/intel-lab-lkp/linux/commits/Ping-Ke-Shih/rtw89-8852c-add-RFK-and-then-enable-8852ce > >> -in-Makefile-and-Kconfig/20220426-143456 > >> base: > >> https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git > >> main > >> config: i386-allmodconfig > >> (https://download.01.org/0day-ci/archive/20220429/202204290830.slUaIhad-lkp@intel.com/config) > >> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project > >> c59473aacce38cd7dd77eebceaf3c98c5707ab3b) > >> reproduce (this is a W=1 build): > >> wget > >> https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross > >> -O > >> ~/bin/make.cross > >> chmod +x ~/bin/make.cross > >> # > >> https://github.com/intel-lab-lkp/linux/commit/5aaabdd4d9ac433ed14c1c02147c2609827739d2 > >> git remote add linux-review https://github.com/intel-lab-lkp/linux > >> git fetch --no-tags linux-review > >> Ping-Ke-Shih/rtw89-8852c-add-RFK-and-then-enable-8852ce-in-Makefile-and-Kconfig/20220426-143456 > >> git checkout 5aaabdd4d9ac433ed14c1c02147c2609827739d2 > >> # save the config file > >> mkdir build_dir && cp config build_dir/.config > >> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross > >> W=1 O=build_dir ARCH=i386 > >> SHELL=/bin/bash drivers/net/wireless/realtek/rtw89/ > >> > >> If you fix the issue, kindly add following tag as appropriate > >> Reported-by: kernel test robot > >> > >> All warnings (new ones prefixed by >>): > >> > >> >> drivers/net/wireless/realtek/rtw89/rtw8852c.c:2640:2: warning: > >> > result of comparison of constant > >> 18446744073709551615 with expression of type 'typeof (_Generic((__msk), char: (unsigned char)0, unsigned > >> char: (unsigned char)0, signed char: (unsigned char)0, unsigned short: (unsigned short)0, short: > (unsigned > >> short)0, unsigned int: (unsigned int)0, int: (unsigned int)0, unsigned long: (unsigned long)0, long: > >> (unsigned long)0, unsigned long long: (unsigned long long)0, long long: (unsigned long long)0, default: > >> (__msk)))' (aka 'unsigned long') is always false [-Wtautological-constant-out-of-range-compare] > >> __write_ctrl(R_AX_PWR_RATE_CTRL, B_AX_FORCE_PWR_BY_RATE_VALUE_MASK, > >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> drivers/net/wireless/realtek/rtw89/rtw8852c.c:2621:13: note: expanded from macro '__write_ctrl' > >> u32 _wrt = FIELD_PREP(__msk, _val); \ > >> ^~~~~~~~~~~~~~~~~~~~~~~ > >> include/linux/bitfield.h:114:3: note: expanded from macro 'FIELD_PREP' > >> __BF_FIELD_CHECK(_mask, 0ULL, _val, "FIELD_PREP: "); \ > >> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> include/linux/bitfield.h:71:53: note: expanded from macro '__BF_FIELD_CHECK' > >> BUILD_BUG_ON_MSG(__bf_cast_unsigned(_mask, _mask) > \ > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ > >> note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all) > >> include/linux/compiler_types.h:352:22: note: expanded from macro 'compiletime_assert' > >> _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) > >> ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> include/linux/compiler_types.h:340:23: note: expanded from macro '_compiletime_assert' > >> __compiletime_assert(condition, msg, prefix, suffix) > >> ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> include/linux/compiler_types.h:332:9: note: expanded from macro '__compiletime_assert' > >> if (!(condition)) \ > >> ^~~~~~~~~ > > > > We add 'BUILD_BUG_ON((__msk & __en) != 0);' to prevent coding error during > > development. The __msk and __en in the expression are constant and expected > > no intersection of these two bit masks. Since we have verified this code, > > I think I can send a patch to remove the BUILD_BUG_ON() from this macro. > > I'm dropping the patchset, please submit a new version including your > fix. > v2 has sent. But, I misread the cause that isn't due to BUILD_BUG_ON() but mask type. Ping-Ke