Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* drivers/ata/libata-pmp.c:595:3: error: invalid argument type 'struct work_struct' to unary expression
@ 2026-05-10  6:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-05-10  6:35 UTC (permalink / raw)
  To: Niklas Cassel; +Cc: llvm, oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Niklas-Cassel/ata-libata-scsi-do-not-use-the-deferred-QC-feature-on-PMPs-with-CBS/20260510-083938
head:   f7b32ede283da1d05e06942112793f0b352b16b3
commit: f7b32ede283da1d05e06942112793f0b352b16b3 ata: libata-scsi: do not needlessly defer commands when using PMP with FBS
date:   5 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260510/202605100824.ICLrBkCZ-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260510/202605100824.ICLrBkCZ-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/202605100824.ICLrBkCZ-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/ata/libata-pmp.c:595:3: error: invalid argument type 'struct work_struct' to unary expression
     595 |                 WARN_ON(tlink->deferred_qc_work);
         |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/asm-generic/bug.h:110:23: note: expanded from macro 'WARN_ON'
     110 |         int __ret_warn_on = !!(condition);                              \
         |                              ^~~~~~~~~~~~
   1 error generated.


vim +595 drivers/ata/libata-pmp.c

   568	
   569	/**
   570	 *	sata_pmp_detach - detach a SATA PMP device
   571	 *	@dev: SATA PMP device to detach
   572	 *
   573	 *	Detach SATA PMP device @dev.  This function is also
   574	 *	responsible for deconfiguring PMP links.
   575	 *
   576	 *	LOCKING:
   577	 *	Kernel thread context (may sleep).
   578	 */
   579	static void sata_pmp_detach(struct ata_device *dev)
   580	{
   581		struct ata_link *link = dev->link;
   582		struct ata_port *ap = link->ap;
   583		struct ata_link *tlink;
   584		unsigned long flags;
   585	
   586		ata_dev_info(dev, "Port Multiplier detaching\n");
   587	
   588		WARN_ON(!ata_is_host_link(link) || dev->devno ||
   589			link->pmp != SATA_PMP_CTRL_PORT);
   590	
   591		if (ap->ops->pmp_detach)
   592			ap->ops->pmp_detach(ap);
   593	
   594		ata_for_each_link(tlink, ap, EDGE) {
 > 595			WARN_ON(tlink->deferred_qc_work);
   596			cancel_work_sync(&tlink->deferred_qc_work);
   597			ata_eh_detach_dev(tlink->device);
   598		}
   599	
   600		spin_lock_irqsave(ap->lock, flags);
   601		ap->nr_pmp_links = 0;
   602		link->pmp = 0;
   603		spin_unlock_irqrestore(ap->lock, flags);
   604	}
   605	

--
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:[~2026-05-10  6:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-10  6:35 drivers/ata/libata-pmp.c:595:3: error: invalid argument type 'struct work_struct' to unary expression 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