:::::: 
:::::: Manual check reason: "low confidence bisect report"
:::::: 

BCC: [email protected]
CC: [email protected]
TO: Frank Wunderlich <[email protected]>

tree:   https://github.com/frank-w/BPI-R2-4.14 6.0-r2pro-pcie
head:   e7a7198c81420b9ac5e6eb578ab451a7fb3ccde3
commit: c36a133b79dd4a4424c35e5f22159636e150da96 [37/54] mt6625l: remove 
HCI_QUIRK_BROKEN_ERR_DATA_REPORTING
:::::: branch date: 30 hours ago
:::::: commit date: 6 days ago
config: arm-randconfig-c002-20220824 
(https://download.01.org/0day-ci/archive/20220828/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
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/frank-w/BPI-R2-4.14/commit/c36a133b79dd4a4424c35e5f22159636e150da96
        git remote add frank-w-bpi-r2-4.14 
https://github.com/frank-w/BPI-R2-4.14
        git fetch --no-tags frank-w-bpi-r2-4.14 6.0-r2pro-pcie
        git checkout c36a133b79dd4a4424c35e5f22159636e150da96
        # save the config file
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross 

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>

All errors (new ones prefixed by >>):

   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:272:5:
 error: no previous prototype for 'hci_recv_fragment' 
[-Werror=missing-prototypes]
     272 | int hci_recv_fragment(struct hci_dev *hdev, int type, void *data, 
int count)
         |     ^~~~~~~~~~~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:294:1:
 error: no previous prototype for 'hex_dump' [-Werror=missing-prototypes]
     294 | hex_dump(char *prefix, char *p, int len)
         | ^~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:457:5:
 error: no previous prototype for 'mtk_bt_hci_init' [-Werror=missing-prototypes]
     457 | int mtk_bt_hci_init(void)
         |     ^~~~~~~~~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:529:6:
 error: no previous prototype for 'BT_event_cb' [-Werror=missing-prototypes]
     529 | VOID BT_event_cb(VOID)
         |      ^~~~~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:542:14:
 error: no previous prototype for 'BT_poll' [-Werror=missing-prototypes]
     542 | unsigned int BT_poll(struct file *filp, poll_table *wait)
         |              ^~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:568:9:
 error: no previous prototype for 'BT_write' [-Werror=missing-prototypes]
     568 | ssize_t BT_write(struct file *filp, const char __user *buf, size_t 
count, loff_t *f_pos)
         |         ^~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:622:9:
 error: no previous prototype for 'BT_read' [-Werror=missing-prototypes]
     622 | ssize_t BT_read(struct file *filp, char __user *buf, size_t count, 
loff_t *f_pos)
         |         ^~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:683:6:
 error: no previous prototype for 'BT_unlocked_ioctl' 
[-Werror=missing-prototypes]
     683 | long BT_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned 
long arg)
         |      ^~~~~~~~~~~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:728:6:
 error: no previous prototype for 'BT_compat_ioctl' [-Werror=missing-prototypes]
     728 | long BT_compat_ioctl(struct file *filp, unsigned int cmd, unsigned 
long arg)
         |      ^~~~~~~~~~~~~~~
   
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c: 
In function 'bt_cdev_rst_cb':
>> drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c:504:31:
>>  error: use of uninitialized value '<unknown>' [CWE-457] 
>> [-Werror=analyzer-use-of-uninitialized-value]
     504 |         ENUM_WMTRSTMSG_TYPE_T rst_msg;
         |                               ^~~~~~~
     'bt_cdev_rst_cb': event 1
       |
       |  504 |         ENUM_WMTRSTMSG_TYPE_T rst_msg;
       |      |                               ^~~~~~~
       |      |                               |
       |      |                               (1) use of uninitialized value 
'<unknown>' here
       |
   cc1: all warnings being treated as errors


vim +504 
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.c

51e2c94a1a250e Frank Wunderlich 2022-08-21  496  
51e2c94a1a250e Frank Wunderlich 2022-08-21  497  
51e2c94a1a250e Frank Wunderlich 2022-08-21  498  static VOID 
bt_cdev_rst_cb(ENUM_WMTDRV_TYPE_T src,
51e2c94a1a250e Frank Wunderlich 2022-08-21  499                            
ENUM_WMTDRV_TYPE_T dst, ENUM_WMTMSG_TYPE_T type, PVOID buf, UINT32 sz)
51e2c94a1a250e Frank Wunderlich 2022-08-21  500  {
51e2c94a1a250e Frank Wunderlich 2022-08-21  501         /*
51e2c94a1a250e Frank Wunderlich 2022-08-21  502            Handle whole chip 
reset messages
51e2c94a1a250e Frank Wunderlich 2022-08-21  503          */
51e2c94a1a250e Frank Wunderlich 2022-08-21 @504         ENUM_WMTRSTMSG_TYPE_T 
rst_msg;
51e2c94a1a250e Frank Wunderlich 2022-08-21  505  
51e2c94a1a250e Frank Wunderlich 2022-08-21  506         if (sz <= 
sizeof(ENUM_WMTRSTMSG_TYPE_T)) {
51e2c94a1a250e Frank Wunderlich 2022-08-21  507                 
memcpy((PINT8)&rst_msg, (PINT8)buf, sz);
51e2c94a1a250e Frank Wunderlich 2022-08-21  508                 
BT_DBG_FUNC("src = %d, dst = %d, type = %d, buf = 0x%x sz = %d, max = %d\n", 
src,
51e2c94a1a250e Frank Wunderlich 2022-08-21  509                              
dst, type, rst_msg, sz, WMTRSTMSG_RESET_MAX);
51e2c94a1a250e Frank Wunderlich 2022-08-21  510                 if ((src == 
WMTDRV_TYPE_WMT) && (dst == WMTDRV_TYPE_BT)
51e2c94a1a250e Frank Wunderlich 2022-08-21  511                     && (type == 
WMTMSG_TYPE_RESET)) {
51e2c94a1a250e Frank Wunderlich 2022-08-21  512                         if 
(rst_msg == WMTRSTMSG_RESET_START) {
51e2c94a1a250e Frank Wunderlich 2022-08-21  513                                 
BT_INFO_FUNC("BT reset start!\n");
51e2c94a1a250e Frank Wunderlich 2022-08-21  514                                 
rstflag = 1;
51e2c94a1a250e Frank Wunderlich 2022-08-21  515                                 
wake_up_interruptible(&inq);
51e2c94a1a250e Frank Wunderlich 2022-08-21  516  
51e2c94a1a250e Frank Wunderlich 2022-08-21  517                         } else 
if (rst_msg == WMTRSTMSG_RESET_END) {
51e2c94a1a250e Frank Wunderlich 2022-08-21  518                                 
BT_INFO_FUNC("BT reset end!\n");
51e2c94a1a250e Frank Wunderlich 2022-08-21  519                                 
rstflag = 2;
51e2c94a1a250e Frank Wunderlich 2022-08-21  520                                 
wake_up_interruptible(&inq);
51e2c94a1a250e Frank Wunderlich 2022-08-21  521                         }
51e2c94a1a250e Frank Wunderlich 2022-08-21  522                 }
51e2c94a1a250e Frank Wunderlich 2022-08-21  523         } else {
51e2c94a1a250e Frank Wunderlich 2022-08-21  524                 /* Invalid 
message format */
51e2c94a1a250e Frank Wunderlich 2022-08-21  525                 
BT_WARN_FUNC("Invalid message format!\n");
51e2c94a1a250e Frank Wunderlich 2022-08-21  526         }
51e2c94a1a250e Frank Wunderlich 2022-08-21  527  }
51e2c94a1a250e Frank Wunderlich 2022-08-21  528  

:::::: The code at line 504 was first introduced by commit
:::::: 51e2c94a1a250eca4240fa872012ad2741a8d606 mt6625l: add driver folder from 
5.19

:::::: TO: Frank Wunderlich <[email protected]>
:::::: CC: Frank Wunderlich <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to