Content-Type: multipart/mixed; boundary="===============0369795534269899472==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH v2 05/15] staging: r8188eu: remove DBG_88E calls from hal subdir Date: Thu, 17 Feb 2022 05:35:24 +0800 Message-ID: <202202170549.Ns7hoYfn-lkp@intel.com> In-Reply-To: <20220216010709.791-6-phil@philpotter.co.uk> List-Id: --===============0369795534269899472== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Phillip, I love your patch! Perhaps something to improve: [auto build test WARNING on staging/staging-testing] url: https://github.com/0day-ci/linux/commits/Phillip-Potter/staging-r81= 88eu-Cleanup-and-removal-of-DBG_88E-macro/20220216-090900 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git = e9685834b1db754cbd07e31ad1a091f5d366dacf config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/202202= 17/202202170549.Ns7hoYfn-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0e628a= 783b935c70c80815db6c061ec84f884af5) reproduce (this is a W=3D1 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/0day-ci/linux/commit/b481114992de793aca50ace16= 16b6b3947fde0a0 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Phillip-Potter/staging-r8188eu-Cle= anup-and-removal-of-DBG_88E-macro/20220216-090900 git checkout b481114992de793aca50ace1616b6b3947fde0a0 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash drivers/leds/ drivers/net/e= thernet/mellanox/mlxsw/ drivers/platform/chrome/ drivers/staging/r8188eu/ m= m/damon/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/staging/r8188eu/hal/usb_halinit.c:1546:6: warning: variable 'arg= ' set but not used [-Wunused-but-set-variable] u8 arg; ^ 1 warning generated. vim +/arg +1546 drivers/staging/r8188eu/hal/usb_halinit.c 8cd574e6af5463a Phillip Potter 2021-07-28 1490 = b561d2f0dc01ab0 Michael Straube 2021-09-06 1491 void UpdateHalRAMask8188E= Usb(struct adapter *adapt, u32 mac_id, u8 rssi_level) 8cd574e6af5463a Phillip Potter 2021-07-28 1492 { 8cd574e6af5463a Phillip Potter 2021-07-28 1493 u8 init_rate =3D 0; 8cd574e6af5463a Phillip Potter 2021-07-28 1494 u8 networkType, raid; 8cd574e6af5463a Phillip Potter 2021-07-28 1495 u32 mask, rate_bitmap; 8cd574e6af5463a Phillip Potter 2021-07-28 1496 u8 shortGIrate =3D false; 8cd574e6af5463a Phillip Potter 2021-07-28 1497 int supportRateNum =3D 0; 8cd574e6af5463a Phillip Potter 2021-07-28 1498 struct sta_info *psta; d904512db6f3727 Michael Straube 2021-12-07 1499 struct hal_data_8188e *h= aldata =3D &adapt->haldata; 8cd574e6af5463a Phillip Potter 2021-07-28 1500 struct mlme_ext_priv *pm= lmeext =3D &adapt->mlmeextpriv; 6839ff57baa4a60 Michael Straube 2021-08-09 1501 struct mlme_ext_info *pm= lmeinfo =3D &pmlmeext->mlmext_info; 6839ff57baa4a60 Michael Straube 2021-08-09 1502 struct wlan_bssid_ex *cu= r_network =3D &pmlmeinfo->network; 8cd574e6af5463a Phillip Potter 2021-07-28 1503 = 8cd574e6af5463a Phillip Potter 2021-07-28 1504 if (mac_id >=3D NUM_STA)= /* CAM_SIZE */ 8cd574e6af5463a Phillip Potter 2021-07-28 1505 return; 8cd574e6af5463a Phillip Potter 2021-07-28 1506 psta =3D pmlmeinfo->FW_s= ta_info[mac_id].psta; 725a3f1c4d56b73 Michael Straube 2021-08-01 1507 if (!psta) 8cd574e6af5463a Phillip Potter 2021-07-28 1508 return; 8cd574e6af5463a Phillip Potter 2021-07-28 1509 switch (mac_id) { 8cd574e6af5463a Phillip Potter 2021-07-28 1510 case 0:/* for infra mod= e */ 8cd574e6af5463a Phillip Potter 2021-07-28 1511 supportRateNum =3D rtw_= get_rateset_len(cur_network->SupportedRates); 8cd574e6af5463a Phillip Potter 2021-07-28 1512 networkType =3D judge_n= etwork_type(adapt, cur_network->SupportedRates, supportRateNum) & 0xf; 8cd574e6af5463a Phillip Potter 2021-07-28 1513 raid =3D networktype_to= _raid(networkType); 8cd574e6af5463a Phillip Potter 2021-07-28 1514 mask =3D update_support= ed_rate(cur_network->SupportedRates, supportRateNum); 6839ff57baa4a60 Michael Straube 2021-08-09 1515 mask |=3D (pmlmeinfo->H= T_enable) ? update_MSC_rate(&pmlmeinfo->HT_caps) : 0; 6839ff57baa4a60 Michael Straube 2021-08-09 1516 if (support_short_GI(ad= apt, &pmlmeinfo->HT_caps)) 8cd574e6af5463a Phillip Potter 2021-07-28 1517 shortGIrate =3D true; 8cd574e6af5463a Phillip Potter 2021-07-28 1518 break; 8cd574e6af5463a Phillip Potter 2021-07-28 1519 case 1:/* for broadcast/= multicast */ 8cd574e6af5463a Phillip Potter 2021-07-28 1520 supportRateNum =3D rtw_= get_rateset_len(pmlmeinfo->FW_sta_info[mac_id].SupportedRates); 8cd574e6af5463a Phillip Potter 2021-07-28 1521 if (pmlmeext->cur_wirel= ess_mode & WIRELESS_11B) 8cd574e6af5463a Phillip Potter 2021-07-28 1522 networkType =3D WIRELE= SS_11B; 8cd574e6af5463a Phillip Potter 2021-07-28 1523 else 8cd574e6af5463a Phillip Potter 2021-07-28 1524 networkType =3D WIRELE= SS_11G; 8cd574e6af5463a Phillip Potter 2021-07-28 1525 raid =3D networktype_to= _raid(networkType); 8cd574e6af5463a Phillip Potter 2021-07-28 1526 mask =3D update_basic_r= ate(cur_network->SupportedRates, supportRateNum); 8cd574e6af5463a Phillip Potter 2021-07-28 1527 break; 8cd574e6af5463a Phillip Potter 2021-07-28 1528 default: /* for each sta= in IBSS */ 8cd574e6af5463a Phillip Potter 2021-07-28 1529 supportRateNum =3D rtw_= get_rateset_len(pmlmeinfo->FW_sta_info[mac_id].SupportedRates); 8cd574e6af5463a Phillip Potter 2021-07-28 1530 networkType =3D judge_n= etwork_type(adapt, pmlmeinfo->FW_sta_info[mac_id].SupportedRates, supportRa= teNum) & 0xf; 8cd574e6af5463a Phillip Potter 2021-07-28 1531 raid =3D networktype_to= _raid(networkType); 8cd574e6af5463a Phillip Potter 2021-07-28 1532 mask =3D update_support= ed_rate(cur_network->SupportedRates, supportRateNum); 8cd574e6af5463a Phillip Potter 2021-07-28 1533 = 8cd574e6af5463a Phillip Potter 2021-07-28 1534 /* todo: support HT in = IBSS */ 8cd574e6af5463a Phillip Potter 2021-07-28 1535 break; 8cd574e6af5463a Phillip Potter 2021-07-28 1536 } 8cd574e6af5463a Phillip Potter 2021-07-28 1537 = 8cd574e6af5463a Phillip Potter 2021-07-28 1538 rate_bitmap =3D 0x0fffff= ff; 8cd574e6af5463a Phillip Potter 2021-07-28 1539 rate_bitmap =3D ODM_Get_= Rate_Bitmap(&haldata->odmpriv, mac_id, mask, rssi_level); 8cd574e6af5463a Phillip Potter 2021-07-28 1540 = 8cd574e6af5463a Phillip Potter 2021-07-28 1541 mask &=3D rate_bitmap; 8cd574e6af5463a Phillip Potter 2021-07-28 1542 = 8cd574e6af5463a Phillip Potter 2021-07-28 1543 init_rate =3D get_highes= t_rate_idx(mask) & 0x3f; 8cd574e6af5463a Phillip Potter 2021-07-28 1544 = 8cd574e6af5463a Phillip Potter 2021-07-28 1545 if (haldata->fw_ractrl) { 8cd574e6af5463a Phillip Potter 2021-07-28 @1546 u8 arg; 8cd574e6af5463a Phillip Potter 2021-07-28 1547 = 8cd574e6af5463a Phillip Potter 2021-07-28 1548 arg =3D mac_id & 0x1f;/= * MACID */ 8cd574e6af5463a Phillip Potter 2021-07-28 1549 arg |=3D BIT(7); 8cd574e6af5463a Phillip Potter 2021-07-28 1550 if (shortGIrate) 8cd574e6af5463a Phillip Potter 2021-07-28 1551 arg |=3D BIT(5); 8cd574e6af5463a Phillip Potter 2021-07-28 1552 mask |=3D ((raid << 28)= & 0xf0000000); 8cd574e6af5463a Phillip Potter 2021-07-28 1553 psta->ra_mask =3D mask; 8cd574e6af5463a Phillip Potter 2021-07-28 1554 mask |=3D ((raid << 28)= & 0xf0000000); 8cd574e6af5463a Phillip Potter 2021-07-28 1555 = 8cd574e6af5463a Phillip Potter 2021-07-28 1556 /* to do ,for 8188E-SMI= C */ 8cd574e6af5463a Phillip Potter 2021-07-28 1557 rtl8188e_set_raid_cmd(a= dapt, mask); 8cd574e6af5463a Phillip Potter 2021-07-28 1558 } else { 6839ff57baa4a60 Michael Straube 2021-08-09 1559 ODM_RA_UpdateRateInfo_8= 188E(&haldata->odmpriv, 8cd574e6af5463a Phillip Potter 2021-07-28 1560 mac_id, 8cd574e6af5463a Phillip Potter 2021-07-28 1561 raid, 8cd574e6af5463a Phillip Potter 2021-07-28 1562 mask, 8cd574e6af5463a Phillip Potter 2021-07-28 1563 shortGIrate 8cd574e6af5463a Phillip Potter 2021-07-28 1564 ); 8cd574e6af5463a Phillip Potter 2021-07-28 1565 } 8cd574e6af5463a Phillip Potter 2021-07-28 1566 /* set ra_id */ 8cd574e6af5463a Phillip Potter 2021-07-28 1567 psta->raid =3D raid; 8cd574e6af5463a Phillip Potter 2021-07-28 1568 psta->init_rate =3D init= _rate; 8cd574e6af5463a Phillip Potter 2021-07-28 1569 } 8cd574e6af5463a Phillip Potter 2021-07-28 1570 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============0369795534269899472==--