All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:openEuler-1.0-LTS 1732/1732] drivers/scsi/sssraid/sssraid_os.c:1704:2: error: implicit declaration of function 'for_each_pci_msi_entry'
@ 2025-07-18  9:44 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-07-18  9:44 UTC (permalink / raw)
  To: kernel; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git openEuler-1.0-LTS
head:   700db19c02e9c8dcf291aa7a6a29337c97ea1805
commit: 2e2a4edd9d4a725c5474dc278b090913d9b5bfd5 [1732/1732] SCSI: SSSRAID: Support 3SNIC 3S5XX serial RAID/HBA  controllers
config: x86_64-buildonly-randconfig-005-20250718 (https://download.01.org/0day-ci/archive/20250718/202507181741.tfXG7WLG-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/20250718/202507181741.tfXG7WLG-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/202507181741.tfXG7WLG-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/scsi/sssraid/sssraid_os.c:1704:2: error: implicit declaration of function 'for_each_pci_msi_entry' [-Werror,-Wimplicit-function-declaration]
    1704 |         for_each_pci_msi_entry(entry, pdev) {
         |         ^
>> drivers/scsi/sssraid/sssraid_os.c:1704:37: error: expected ';' after expression
    1704 |         for_each_pci_msi_entry(entry, pdev) {
         |                                            ^
         |                                            ;
>> drivers/scsi/sssraid/sssraid_os.c:1705:43: error: no member named 'msi_list' in 'struct device'
    1705 |                 struct list_head *msi_list = &pdev->dev.msi_list;
         |                                               ~~~~~~~~~ ^
   drivers/scsi/sssraid/sssraid_os.c:1716:5: error: 'continue' statement not in loop statement
    1716 |                                 continue;
         |                                 ^
   drivers/scsi/sssraid/sssraid_os.c:1726:3: error: 'continue' statement not in loop statement
    1726 |                 continue;
         |                 ^
   5 errors generated.


vim +/for_each_pci_msi_entry +1704 drivers/scsi/sssraid/sssraid_os.c

  1689	
  1690	static int sssraid_map_queues(struct Scsi_Host *shost)
  1691	{
  1692		struct sssraid_ioc *sdioc = shost_priv(shost);
  1693		struct pci_dev *pdev = sdioc->pdev;
  1694		struct msi_desc *entry = NULL;
  1695		struct blk_mq_tag_set *tag_set = &shost->tag_set;
  1696		unsigned int *map = tag_set->mq_map;
  1697		const struct cpumask *node_mask = NULL;
  1698		unsigned int nr_queues = tag_set->nr_hw_queues;
  1699		unsigned int node_id, node_id_last = 0xFFFFFFFF;
  1700		int cpu, queue = 0;
  1701		u8 node_count = 0, i;
  1702		unsigned int node_id_array[100];
  1703	
> 1704		for_each_pci_msi_entry(entry, pdev) {
> 1705			struct list_head *msi_list = &pdev->dev.msi_list;
  1706	
  1707			if (list_is_last(msi_list, &entry->list))
  1708				goto get_next_numa_node;
  1709	
  1710			if (entry->irq) {
  1711				node_mask = entry->affinity;
  1712	
  1713				cpu = cpumask_first(node_mask);
  1714				node_id = cpu_to_node(cpu);
  1715				if (node_id_last == node_id)
  1716					continue;
  1717	
  1718				for (i = 0; i < node_count; i++) {
  1719					if (node_id == node_id_array[i])
  1720						goto get_next_numa_node;
  1721				}
  1722				node_id_array[node_count++] = node_id;
  1723				node_id_last = node_id;
  1724			}
  1725	get_next_numa_node:
  1726			continue;
  1727		}
  1728	
  1729		for (i = 0; i < node_count; i++) {
  1730			node_mask = cpumask_of_node(node_id_array[i]);
  1731			dbgprint(sdioc, "NUMA_node = %d\n", node_id_array[i]);
  1732			for_each_cpu(cpu, node_mask) {
  1733				map[cpu] = (queue < nr_queues) ? queue++ : 0;
  1734				dbgprint(sdioc, "map[%d] = %d\n", cpu, map[cpu]);
  1735			}
  1736		}
  1737	
  1738		return 0;
  1739	}
  1740	

-- 
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:[~2025-07-18  9:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18  9:44 [openeuler:openEuler-1.0-LTS 1732/1732] drivers/scsi/sssraid/sssraid_os.c:1704:2: error: implicit declaration of function 'for_each_pci_msi_entry' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.