[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202105110119.jJVKqOTW-lkp@intel.com>
Date: Tue, 11 May 2021 01:22:33 +0800
From: kernel test robot <lkp@...el.com>
To: Zhen Lei <thunder.leizhen@...wei.com>,
Kalle Valo <kvalo@...eaurora.org>,
"David S . Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
linux-wireless <linux-wireless@...r.kernel.org>,
b43-dev <b43-dev@...ts.infradead.org>,
netdev <netdev@...r.kernel.org>
Cc: kbuild-all@...ts.01.org, Zhen Lei <thunder.leizhen@...wei.com>
Subject: Re: [PATCH 1/1] b43: phy_n: Delete some useless empty code
Hi Zhen,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on wireless-drivers-next/master]
[also build test WARNING on wireless-drivers/master v5.13-rc1 next-20210510]
[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/0day-ci/linux/commits/Zhen-Lei/b43-phy_n-Delete-some-useless-empty-code/20210510-225502
base: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: x86_64-randconfig-s022-20210510 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-341-g8af24329-dirty
# https://github.com/0day-ci/linux/commit/0a34ec34888436b132760d1f4f9aa7b0e8f84488
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Zhen-Lei/b43-phy_n-Delete-some-useless-empty-code/20210510-225502
git checkout 0a34ec34888436b132760d1f4f9aa7b0e8f84488
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All warnings (new ones prefixed by >>):
drivers/net/wireless/broadcom/b43/phy_n.c: In function 'b43_nphy_spur_workaround':
>> drivers/net/wireless/broadcom/b43/phy_n.c:4597:6: warning: variable 'noise' set but not used [-Wunused-but-set-variable]
4597 | u32 noise[2] = { 0x3FF, 0x3FF };
| ^~~~~
>> drivers/net/wireless/broadcom/b43/phy_n.c:4596:6: warning: variable 'tone' set but not used [-Wunused-but-set-variable]
4596 | int tone[2] = { 57, 58 };
| ^~~~
vim +/noise +4597 drivers/net/wireless/broadcom/b43/phy_n.c
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4589
2d96c1ed4bab52 drivers/net/wireless/broadcom/b43/phy_n.c Alexander A. Klimov 2020-07-19 4590 /* https://bcm-v4.sipsolutions.net/802.11/PHY/N/SpurWar */
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4591 static void b43_nphy_spur_workaround(struct b43_wldev *dev)
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4592 {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4593 struct b43_phy_n *nphy = dev->phy.n;
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4594
204a665ba390bc drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-10-14 4595 u8 channel = dev->phy.channel;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 @4596 int tone[2] = { 57, 58 };
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 @4597 u32 noise[2] = { 0x3FF, 0x3FF };
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4598
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4599 B43_WARN_ON(dev->phy.rev < 3);
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4600
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4601 if (nphy->hang_avoid)
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4602 b43_nphy_stay_in_carrier_search(dev, 1);
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4603
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4604 if (nphy->aband_spurwar_en) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4605 if (channel == 54) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4606 tone[0] = 0x20;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4607 noise[0] = 0x25F;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4608 } else if (channel == 38 || channel == 102 || channel == 118) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4609 if (0 /* FIXME */) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4610 tone[0] = 0x20;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4611 noise[0] = 0x21F;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4612 } else {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4613 tone[0] = 0;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4614 noise[0] = 0;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4615 }
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4616 } else if (channel == 134) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4617 tone[0] = 0x20;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4618 noise[0] = 0x21F;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4619 } else if (channel == 151) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4620 tone[0] = 0x10;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4621 noise[0] = 0x23F;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4622 } else if (channel == 153 || channel == 161) {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4623 tone[0] = 0x30;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4624 noise[0] = 0x23F;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4625 } else {
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4626 tone[0] = 0;
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4627 noise[0] = 0;
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4628 }
5ae6c8a696cdae drivers/net/wireless/broadcom/b43/phy_n.c Lee Jones 2020-08-14 4629 }
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4630
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4631 if (nphy->hang_avoid)
9442e5b58edb4a drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-02-04 4632 b43_nphy_stay_in_carrier_search(dev, 0);
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4633 }
90b9738d85395d drivers/net/wireless/b43/phy_n.c Rafał Miłecki 2010-01-15 4634
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (37859 bytes)
Powered by blists - more mailing lists