Hi Laurence, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on usb/usb-testing] [also build test WARNING on peter.chen-usb/for-usb-next balbi-usb/testing/next v5.14-rc1 next-20210713] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Laurence-Oberman/usb-hcd-Revert-306c54d0edb6ba94d39877524dddebaad7770cf2-Try-MSI-interrupts-on-PCI-devices/20210714-025312 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-randconfig-a002-20210713 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 8d69635ed9ecf36fd0ca85906bfde17949671cbe) 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 # install x86_64 cross compiling tool for clang build # apt-get install binutils-x86-64-linux-gnu # https://github.com/0day-ci/linux/commit/3ea2a748176f21120e150f0645bc3c22e1cea48f git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Laurence-Oberman/usb-hcd-Revert-306c54d0edb6ba94d39877524dddebaad7770cf2-Try-MSI-interrupts-on-PCI-devices/20210714-025312 git checkout 3ea2a748176f21120e150f0645bc3c22e1cea48f # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> drivers/usb/core/hcd-pci.c:316:8: warning: variable 'hcd_driver_flags' set but not used [-Wunused-but-set-variable] int hcd_driver_flags; ^ 1 warning generated. vim +/hcd_driver_flags +316 drivers/usb/core/hcd-pci.c ^1da177e4c3f4152 Linus Torvalds 2005-04-16 300 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 301 /** ^1da177e4c3f4152 Linus Torvalds 2005-04-16 302 * usb_hcd_pci_remove - shutdown processing for PCI-based HCDs ^1da177e4c3f4152 Linus Torvalds 2005-04-16 303 * @dev: USB Host Controller being removed 41631d3616c36305 Ahmed S. Darwish 2020-10-19 304 * 41631d3616c36305 Ahmed S. Darwish 2020-10-19 305 * Context: task context, might sleep ^1da177e4c3f4152 Linus Torvalds 2005-04-16 306 * ^1da177e4c3f4152 Linus Torvalds 2005-04-16 307 * Reverses the effect of usb_hcd_pci_probe(), first invoking ^1da177e4c3f4152 Linus Torvalds 2005-04-16 308 * the HCD's stop() method. It is always called from a thread ^1da177e4c3f4152 Linus Torvalds 2005-04-16 309 * context, normally "rmmod", "apmd", or something similar. ^1da177e4c3f4152 Linus Torvalds 2005-04-16 310 * ^1da177e4c3f4152 Linus Torvalds 2005-04-16 311 * Store this function in the HCD's struct pci_driver as remove(). ^1da177e4c3f4152 Linus Torvalds 2005-04-16 312 */ ^1da177e4c3f4152 Linus Torvalds 2005-04-16 313 void usb_hcd_pci_remove(struct pci_dev *dev) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 314 { ^1da177e4c3f4152 Linus Torvalds 2005-04-16 315 struct usb_hcd *hcd; 7b2816dd293031b9 Andy Shevchenko 2020-08-14 @316 int hcd_driver_flags; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 317 ^1da177e4c3f4152 Linus Torvalds 2005-04-16 318 hcd = pci_get_drvdata(dev); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 319 if (!hcd) ^1da177e4c3f4152 Linus Torvalds 2005-04-16 320 return; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 321 7b2816dd293031b9 Andy Shevchenko 2020-08-14 322 hcd_driver_flags = hcd->driver->flags; 7b2816dd293031b9 Andy Shevchenko 2020-08-14 323 3da7cff4e79e4a71 Alan Stern 2010-06-25 324 if (pci_dev_run_wake(dev)) 3da7cff4e79e4a71 Alan Stern 2010-06-25 325 pm_runtime_get_noresume(&dev->dev); 3da7cff4e79e4a71 Alan Stern 2010-06-25 326 c548795abe0d3520 Alan Stern 2010-06-09 327 /* Fake an interrupt request in order to give the driver a chance c548795abe0d3520 Alan Stern 2010-06-09 328 * to test whether the controller hardware has been removed (e.g., c548795abe0d3520 Alan Stern 2010-06-09 329 * cardbus physical eject). c548795abe0d3520 Alan Stern 2010-06-09 330 */ c548795abe0d3520 Alan Stern 2010-06-09 331 local_irq_disable(); c548795abe0d3520 Alan Stern 2010-06-09 332 usb_hcd_irq(0, hcd); c548795abe0d3520 Alan Stern 2010-06-09 333 local_irq_enable(); c548795abe0d3520 Alan Stern 2010-06-09 334 05768918b9a122ce Alan Stern 2013-03-28 335 /* Note: dev_set_drvdata must be called while holding the rwsem */ 05768918b9a122ce Alan Stern 2013-03-28 336 if (dev->class == CL_EHCI) { 05768918b9a122ce Alan Stern 2013-03-28 337 down_write(&companions_rwsem); 05768918b9a122ce Alan Stern 2013-03-28 338 for_each_companion(dev, hcd, ehci_remove); 05768918b9a122ce Alan Stern 2013-03-28 339 usb_remove_hcd(hcd); 05768918b9a122ce Alan Stern 2013-03-28 340 dev_set_drvdata(&dev->dev, NULL); 05768918b9a122ce Alan Stern 2013-03-28 341 up_write(&companions_rwsem); 05768918b9a122ce Alan Stern 2013-03-28 342 } else { 05768918b9a122ce Alan Stern 2013-03-28 343 /* Not EHCI; just clear the companion pointer */ 05768918b9a122ce Alan Stern 2013-03-28 344 down_read(&companions_rwsem); 05768918b9a122ce Alan Stern 2013-03-28 345 hcd->self.hs_companion = NULL; ^1da177e4c3f4152 Linus Torvalds 2005-04-16 346 usb_remove_hcd(hcd); 05768918b9a122ce Alan Stern 2013-03-28 347 dev_set_drvdata(&dev->dev, NULL); 05768918b9a122ce Alan Stern 2013-03-28 348 up_read(&companions_rwsem); 05768918b9a122ce Alan Stern 2013-03-28 349 } ^1da177e4c3f4152 Linus Torvalds 2005-04-16 350 usb_put_hcd(hcd); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 351 pci_disable_device(dev); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 352 } 782e70c6fc2290a0 Greg Kroah-Hartman 2008-01-25 353 EXPORT_SYMBOL_GPL(usb_hcd_pci_remove); ^1da177e4c3f4152 Linus Torvalds 2005-04-16 354 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip