public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [mnyman-xhci:feature_interrupters 4/4] drivers/usb/host/xhci-sideband.c:244:66: error: too few arguments to function call, expected 2, have 1
@ 2024-01-30 12:18 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-30 12:18 UTC (permalink / raw)
  To: Mathias Nyman; +Cc: llvm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mnyman/xhci.git feature_interrupters
head:   a7f098b5bba5fe24fe938751ed128c6dd9b967f9
commit: a7f098b5bba5fe24fe938751ed128c6dd9b967f9 [4/4] xhci: sideband: add initial api to register a sideband entity
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240130/202401302024.R12VFof5-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240130/202401302024.R12VFof5-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/202401302024.R12VFof5-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/usb/host/xhci-sideband.c:244:66: error: too few arguments to function call, expected 2, have 1
     244 |         sb->ir = xhci_create_secondary_interrupter(xhci_to_hcd(sb->xhci));
         |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      ^
   drivers/usb/host/xhci.h:2093:1: note: 'xhci_create_secondary_interrupter' declared here
    2093 | xhci_create_secondary_interrupter(struct usb_hcd *hcd, int num_seg);
         | ^                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   1 error generated.


vim +244 drivers/usb/host/xhci-sideband.c

   224	
   225	/**
   226	 * xhci_sideband_create_interrupter - creates a new interrupter for this sideband
   227	 * @sb: sideband instance for this usb device
   228	 *
   229	 * Sets up a xhci interrupter that can be used for this sideband accessed usb
   230	 * device. Transfer events for this device can be routed to this interrupters
   231	 * event ring by setting the 'Interrupter Target' field correctly when queueing
   232	 * the transfer TRBs.
   233	 * Once this interrupter is created the interrupter target ID can be obtained
   234	 * by calling xhci_sideband_interrupter_id()
   235	 *
   236	 * Returns 0 on success, negative error otherwise
   237	 */
   238	int
   239	xhci_sideband_create_interrupter(struct xhci_sideband *sb)
   240	{
   241		if (sb->ir)
   242			return -EBUSY;
   243	
 > 244		sb->ir = xhci_create_secondary_interrupter(xhci_to_hcd(sb->xhci));
   245		if (!sb->ir)
   246			return -ENOMEM;
   247	
   248		return 0;
   249	}
   250	

-- 
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:[~2024-01-30 12:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-30 12:18 [mnyman-xhci:feature_interrupters 4/4] drivers/usb/host/xhci-sideband.c:244:66: error: too few arguments to function call, expected 2, have 1 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