public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Meng Li <Meng.Li@windriver.com>,
	gregkh@linuxfoundation.org, mathias.nyman@linux.intel.com,
	stern@rowland.harvard.edu, Basavaraj.Natikar@amd.com,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	meng.li@windriver.com
Subject: Re: [PATCH] usb: hcd-pci: replace usb_hcd_irq() with generic_handle_irq_safe() to avoid calltrace
Date: Wed, 15 Nov 2023 03:55:55 +0800	[thread overview]
Message-ID: <202311150335.CARpQOQl-lkp@intel.com> (raw)
In-Reply-To: <20231113030041.3655742-1-Meng.Li@windriver.com>

Hi Meng,

kernel test robot noticed the following build errors:

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on usb/usb-next usb/usb-linus linus/master v6.7-rc1 next-20231114]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Meng-Li/usb-hcd-pci-replace-usb_hcd_irq-with-generic_handle_irq_safe-to-avoid-calltrace/20231113-110341
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
patch link:    https://lore.kernel.org/r/20231113030041.3655742-1-Meng.Li%40windriver.com
patch subject: [PATCH] usb: hcd-pci: replace usb_hcd_irq() with generic_handle_irq_safe() to avoid calltrace
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20231115/202311150335.CARpQOQl-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231115/202311150335.CARpQOQl-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/202311150335.CARpQOQl-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/usb/core/hcd-pci.c:328:2: error: call to undeclared function 'generic_handle_irq_safe'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           generic_handle_irq_safe(dev->irq);
           ^
   1 error generated.


vim +/generic_handle_irq_safe +328 drivers/usb/core/hcd-pci.c

   297	
   298	/**
   299	 * usb_hcd_pci_remove - shutdown processing for PCI-based HCDs
   300	 * @dev: USB Host Controller being removed
   301	 *
   302	 * Context: task context, might sleep
   303	 *
   304	 * Reverses the effect of usb_hcd_pci_probe(), first invoking
   305	 * the HCD's stop() method.  It is always called from a thread
   306	 * context, normally "rmmod", "apmd", or something similar.
   307	 *
   308	 * Store this function in the HCD's struct pci_driver as remove().
   309	 */
   310	void usb_hcd_pci_remove(struct pci_dev *dev)
   311	{
   312		struct usb_hcd		*hcd;
   313		int			hcd_driver_flags;
   314	
   315		hcd = pci_get_drvdata(dev);
   316		if (!hcd)
   317			return;
   318	
   319		hcd_driver_flags = hcd->driver->flags;
   320	
   321		if (pci_dev_run_wake(dev))
   322			pm_runtime_get_noresume(&dev->dev);
   323	
   324		/* Fake an interrupt request in order to give the driver a chance
   325		 * to test whether the controller hardware has been removed (e.g.,
   326		 * cardbus physical eject).
   327		 */
 > 328		generic_handle_irq_safe(dev->irq);
   329	
   330		/* Note: dev_set_drvdata must be called while holding the rwsem */
   331		if (dev->class == CL_EHCI) {
   332			down_write(&companions_rwsem);
   333			for_each_companion(dev, hcd, ehci_remove);
   334			usb_remove_hcd(hcd);
   335			dev_set_drvdata(&dev->dev, NULL);
   336			up_write(&companions_rwsem);
   337		} else {
   338			/* Not EHCI; just clear the companion pointer */
   339			down_read(&companions_rwsem);
   340			hcd->self.hs_companion = NULL;
   341			usb_remove_hcd(hcd);
   342			dev_set_drvdata(&dev->dev, NULL);
   343			up_read(&companions_rwsem);
   344		}
   345		usb_put_hcd(hcd);
   346		if ((hcd_driver_flags & HCD_MASK) < HCD_USB3)
   347			pci_free_irq_vectors(dev);
   348		pci_disable_device(dev);
   349	}
   350	EXPORT_SYMBOL_GPL(usb_hcd_pci_remove);
   351	

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

           reply	other threads:[~2023-11-14 19:56 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20231113030041.3655742-1-Meng.Li@windriver.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202311150335.CARpQOQl-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Basavaraj.Natikar@amd.com \
    --cc=Meng.Li@windriver.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=mathias.nyman@linux.intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox