drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c:528:30: warning: variable 'phal' set but not used
From: kernel test robot
Date: Mon Aug 31 2026 - 01:56:52 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cee9395acd8043be0644b25c34bfa86623f2b935
commit: e9b50a2821bbfb5395cc2b9f90e2af45a3137f19 staging: rtl8723bs: remove unused spinlock 'SdioTxFIFOFreePageLock'
date: 5 weeks ago
config: parisc-allyesconfig (https://download.01.org/0day-ci/archive/20260831/202608310749.mheatdIW-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260831/202608310749.mheatdIW-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: e9b50a2821bb ("staging: rtl8723bs: remove unused spinlock 'SdioTxFIFOFreePageLock'")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608310749.mheatdIW-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c: In function 'rtl8723bs_init_xmit_priv':
>> drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c:528:30: warning: variable 'phal' set but not used [-Wunused-but-set-variable=]
528 | struct hal_com_data *phal;
| ^~~~
vim +/phal +528 drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c
554c0a3abf216c Hans de Goede 2017-03-29 518
554c0a3abf216c Hans de Goede 2017-03-29 519 /*
554c0a3abf216c Hans de Goede 2017-03-29 520 * Return
554c0a3abf216c Hans de Goede 2017-03-29 521 *_SUCCESS start thread ok
554c0a3abf216c Hans de Goede 2017-03-29 522 *_FAIL start thread fail
554c0a3abf216c Hans de Goede 2017-03-29 523 *
554c0a3abf216c Hans de Goede 2017-03-29 524 */
554c0a3abf216c Hans de Goede 2017-03-29 525 s32 rtl8723bs_init_xmit_priv(struct adapter *padapter)
554c0a3abf216c Hans de Goede 2017-03-29 526 {
554c0a3abf216c Hans de Goede 2017-03-29 527 struct xmit_priv *xmitpriv = &padapter->xmitpriv;
554c0a3abf216c Hans de Goede 2017-03-29 @528 struct hal_com_data *phal;
554c0a3abf216c Hans de Goede 2017-03-29 529
554c0a3abf216c Hans de Goede 2017-03-29 530 phal = GET_HAL_DATA(padapter);
554c0a3abf216c Hans de Goede 2017-03-29 531
09a8ea34cf431b Arnd Bergmann 2018-12-10 532 init_completion(&xmitpriv->SdioXmitStart);
09a8ea34cf431b Arnd Bergmann 2018-12-10 533 init_completion(&xmitpriv->SdioXmitTerminate);
554c0a3abf216c Hans de Goede 2017-03-29 534
554c0a3abf216c Hans de Goede 2017-03-29 535 return _SUCCESS;
554c0a3abf216c Hans de Goede 2017-03-29 536 }
554c0a3abf216c Hans de Goede 2017-03-29 537
:::::: The code at line 528 was first introduced by commit
:::::: 554c0a3abf216c991c5ebddcdb2c08689ecd290b staging: Add rtl8723bs sdio wifi driver
:::::: TO: Hans de Goede <hdegoede@xxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki