drivers/staging/rtl8723bs/hal/hal_btcoex.c:806:36: sparse: sparse: Using plain integer as NULL pointer

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild
Message-ID <[email protected]>
:::::: 
:::::: Manual check reason: "bisect to a FBC not belonging to original linux-review patches: branch: linux-review/Arsenii-Pashchenko/staging-rtl8723bs-remove-redundant-rtw_ap_set_group_key-wrapper/20260716-000308, commit: d3c3c6ca50c90eb361aa1c14d0a4e40c9c324b99"
:::::: 

BCC: [email protected]
CC: [email protected]
TO: Arsenii Pashchenko <[email protected]>
CC: 0day robot <[email protected]>

tree:   https://github.com/intel-lab-lkp/linux/commits/Arsenii-Pashchenko/staging-rtl8723bs-remove-redundant-rtw_ap_set_group_key-wrapper/20260716-000308
head:   849bc73defbc6ee0bef7b2e057cf51310d757e08
commit: d3c3c6ca50c90eb361aa1c14d0a4e40c9c324b99 staging: rtl8723bs: remove unimplemented halbtcoutsrc_GetBtReg helper
date:   2 days ago
:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: openrisc-randconfig-r121-20260717 (https://download.01.org/0day-ci/archive/20260717/[email protected]/config)
compiler: or1k-linux-gcc (GCC) 10.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260717/[email protected]/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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

sparse warnings: (new ones prefixed by >>)
>> drivers/staging/rtl8723bs/hal/hal_btcoex.c:806:36: sparse: sparse: Using plain integer as NULL pointer

vim +806 drivers/staging/rtl8723bs/hal/hal_btcoex.c

554c0a3abf216c Hans de Goede      2017-03-29  772  
6250a57e6cf454 Nishka Dasgupta    2019-08-02  773  void hal_btcoex_Initialize(void *padapter)
554c0a3abf216c Hans de Goede      2017-03-29  774  {
9b747b01afaa1d Marco Cesati       2021-03-17  775  	struct btc_coexist *pBtCoexist;
6250a57e6cf454 Nishka Dasgupta    2019-08-02  776  
6250a57e6cf454 Nishka Dasgupta    2019-08-02  777  	memset(&GLBtCoexist, 0, sizeof(GLBtCoexist));
6250a57e6cf454 Nishka Dasgupta    2019-08-02  778  
6250a57e6cf454 Nishka Dasgupta    2019-08-02  779  	pBtCoexist = &GLBtCoexist;
554c0a3abf216c Hans de Goede      2017-03-29  780  
554c0a3abf216c Hans de Goede      2017-03-29  781  	/* pBtCoexist->statistics.cntBind++; */
554c0a3abf216c Hans de Goede      2017-03-29  782  
554c0a3abf216c Hans de Goede      2017-03-29  783  	pBtCoexist->chipInterface = BTC_INTF_SDIO;
554c0a3abf216c Hans de Goede      2017-03-29  784  
554c0a3abf216c Hans de Goede      2017-03-29  785  	EXhalbtcoutsrc_BindBtCoexWithAdapter(padapter);
554c0a3abf216c Hans de Goede      2017-03-29  786  
554c0a3abf216c Hans de Goede      2017-03-29  787  	pBtCoexist->fBtcRead1Byte = halbtcoutsrc_Read1Byte;
554c0a3abf216c Hans de Goede      2017-03-29  788  	pBtCoexist->fBtcWrite1Byte = halbtcoutsrc_Write1Byte;
554c0a3abf216c Hans de Goede      2017-03-29  789  	pBtCoexist->fBtcWrite1ByteBitMask = halbtcoutsrc_BitMaskWrite1Byte;
554c0a3abf216c Hans de Goede      2017-03-29  790  	pBtCoexist->fBtcRead2Byte = halbtcoutsrc_Read2Byte;
554c0a3abf216c Hans de Goede      2017-03-29  791  	pBtCoexist->fBtcWrite2Byte = halbtcoutsrc_Write2Byte;
554c0a3abf216c Hans de Goede      2017-03-29  792  	pBtCoexist->fBtcRead4Byte = halbtcoutsrc_Read4Byte;
554c0a3abf216c Hans de Goede      2017-03-29  793  	pBtCoexist->fBtcWrite4Byte = halbtcoutsrc_Write4Byte;
554c0a3abf216c Hans de Goede      2017-03-29  794  	pBtCoexist->fBtcWriteLocalReg1Byte = halbtcoutsrc_WriteLocalReg1Byte;
554c0a3abf216c Hans de Goede      2017-03-29  795  
554c0a3abf216c Hans de Goede      2017-03-29  796  	pBtCoexist->fBtcSetBbReg = halbtcoutsrc_SetBbReg;
554c0a3abf216c Hans de Goede      2017-03-29  797  	pBtCoexist->fBtcGetBbReg = halbtcoutsrc_GetBbReg;
554c0a3abf216c Hans de Goede      2017-03-29  798  
554c0a3abf216c Hans de Goede      2017-03-29  799  	pBtCoexist->fBtcSetRfReg = halbtcoutsrc_SetRfReg;
554c0a3abf216c Hans de Goede      2017-03-29  800  	pBtCoexist->fBtcGetRfReg = halbtcoutsrc_GetRfReg;
554c0a3abf216c Hans de Goede      2017-03-29  801  
554c0a3abf216c Hans de Goede      2017-03-29  802  	pBtCoexist->fBtcFillH2c = halbtcoutsrc_FillH2cCmd;
554c0a3abf216c Hans de Goede      2017-03-29  803  
554c0a3abf216c Hans de Goede      2017-03-29  804  	pBtCoexist->fBtcGet = halbtcoutsrc_Get;
554c0a3abf216c Hans de Goede      2017-03-29  805  	pBtCoexist->fBtcSet = halbtcoutsrc_Set;
d3c3c6ca50c90e Arsenii Pashchenko 2026-07-15 @806  	pBtCoexist->fBtcGetBtReg = 0; /*not be implemented*/
554c0a3abf216c Hans de Goede      2017-03-29  807  	pBtCoexist->fBtcSetBtReg = halbtcoutsrc_SetBtReg;
554c0a3abf216c Hans de Goede      2017-03-29  808  
554c0a3abf216c Hans de Goede      2017-03-29  809  	pBtCoexist->boardInfo.singleAntPath = 0;
554c0a3abf216c Hans de Goede      2017-03-29  810  
554c0a3abf216c Hans de Goede      2017-03-29  811  	GLBtcWiFiInScanState = false;
554c0a3abf216c Hans de Goede      2017-03-29  812  
554c0a3abf216c Hans de Goede      2017-03-29  813  	GLBtcWiFiInIQKState = false;
554c0a3abf216c Hans de Goede      2017-03-29  814  }
554c0a3abf216c Hans de Goede      2017-03-29  815  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.