linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 12628/12815] drivers/bluetooth/btmtk.c:386:32: error: no member named 'dump' in 'struct hci_dev'
@ 2023-06-30  9:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-06-30  9:20 UTC (permalink / raw)
  To: Jing Cai
  Cc: llvm, oe-kbuild-all, Linux Memory Management List,
	Luiz Augusto von Dentz, Chris Lu, Sean Wang

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6352a698ca5bf26a9199202666b16cf741f579f6
commit: 872f8c253cb9e84cb3e7f381dd81c7791c64a05a [12628/12815] Bluetooth: btusb: mediatek: add MediaTek devcoredump support
config: x86_64-randconfig-r023-20230630 (https://download.01.org/0day-ci/archive/20230630/202306301709.lvrxzyCj-lkp@intel.com/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project.git 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce: (https://download.01.org/0day-ci/archive/20230630/202306301709.lvrxzyCj-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202306301709.lvrxzyCj-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/bluetooth/btmtk.c:386:32: error: no member named 'dump' in 'struct hci_dev'
                   schedule_delayed_work(&hdev->dump.dump_timeout,
                                          ~~~~  ^
   1 error generated.


vim +386 drivers/bluetooth/btmtk.c

   369	
   370	int btmtk_process_coredump(struct hci_dev *hdev, struct sk_buff *skb)
   371	{
   372		struct btmediatek_data *data = hci_get_priv(hdev);
   373		int err;
   374	
   375		if (!IS_ENABLED(CONFIG_DEV_COREDUMP))
   376			return 0;
   377	
   378		switch (data->cd_info.state) {
   379		case HCI_DEVCOREDUMP_IDLE:
   380			err = hci_devcd_init(hdev, MTK_COREDUMP_SIZE);
   381			if (err < 0)
   382				break;
   383			data->cd_info.cnt = 0;
   384	
   385			/* It is supposed coredump can be done within 5 seconds */
 > 386			schedule_delayed_work(&hdev->dump.dump_timeout,
   387					      msecs_to_jiffies(5000));
   388			fallthrough;
   389		case HCI_DEVCOREDUMP_ACTIVE:
   390		default:
   391			err = hci_devcd_append(hdev, skb);
   392			if (err < 0)
   393				break;
   394			data->cd_info.cnt++;
   395	
   396			/* Mediatek coredump data would be more than MTK_COREDUMP_NUM */
   397			if (data->cd_info.cnt > MTK_COREDUMP_NUM &&
   398			    skb->len > sizeof(MTK_COREDUMP_END) &&
   399			    !memcmp((char *)&skb->data[skb->len - sizeof(MTK_COREDUMP_END)],
   400				    MTK_COREDUMP_END, sizeof(MTK_COREDUMP_END) - 1)) {
   401				bt_dev_info(hdev, "Mediatek coredump end");
   402				hci_devcd_complete(hdev);
   403			}
   404	
   405			break;
   406		}
   407	
   408		if (err < 0)
   409			kfree_skb(skb);
   410	
   411		return err;
   412	}
   413	EXPORT_SYMBOL_GPL(btmtk_process_coredump);
   414	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-30  9:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30  9:20 [linux-next:master 12628/12815] drivers/bluetooth/btmtk.c:386:32: error: no member named 'dump' in 'struct hci_dev' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox