* drivers/scsi/megaraid/megaraid_mbox.c:623:51: error: use of undeclared identifier 'pdev'
@ 2026-06-10 3:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-06-10 3:38 UTC (permalink / raw)
To: Sumit Saxena; +Cc: llvm, oe-kbuild-all, 0day robot
tree: https://github.com/intel-lab-lkp/linux/commits/Sumit-Saxena/scsi-scan-allocate-sdev-and-starget-on-the-NUMA-node-of-the-host-adapter/20260609-195849
head: 1a119c6869ad0a915e9c86e65a8a3d0b0c4b21d2
commit: 7479f1902d058cd6e51b1f7f9b23241d8fd588cd scsi: host: allocate struct Scsi_Host on the NUMA node of the host adapter
date: 16 hours ago
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260610/202606100515.4ene4mEh-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project f43d6834093b19baf79beda8c0337ab020ac5f17)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260610/202606100515.4ene4mEh-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/202606100515.4ene4mEh-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/ata/libata-scsi.c:4619:57: error: too few arguments to function call, expected 3, have 2
4619 | shost = scsi_host_alloc(sht, sizeof(struct ata_port *));
| ~~~~~~~~~~~~~~~ ^
include/scsi/scsi_host.h:799:26: note: 'scsi_host_alloc' declared here
799 | extern struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *sht,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
800 | int privsize, struct device *dev);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--
>> drivers/usb/storage/usb.c:1034:41: error: too few arguments to function call, expected 3, have 2
1034 | host = scsi_host_alloc(sht, sizeof(*us));
| ~~~~~~~~~~~~~~~ ^
include/scsi/scsi_host.h:799:26: note: 'scsi_host_alloc' declared here
799 | extern struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *sht,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
800 | int privsize, struct device *dev);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--
>> drivers/ufs/core/ufshcd.c:10945:27: error: too few arguments to function call, expected 3, have 2
10944 | host = scsi_host_alloc(&ufshcd_driver_template,
| ~~~~~~~~~~~~~~~
10945 | sizeof(struct ufs_hba));
| ^
include/scsi/scsi_host.h:799:26: note: 'scsi_host_alloc' declared here
799 | extern struct Scsi_Host *scsi_host_alloc(const struct scsi_host_template *sht,
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
800 | int privsize, struct device *dev);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
--
>> drivers/scsi/megaraid/megaraid_mbox.c:623:51: error: use of undeclared identifier 'pdev'
623 | host = scsi_host_alloc(&megaraid_template_g, 8, &pdev->dev);
| ^~~~
1 error generated.
vim +/pdev +623 drivers/scsi/megaraid/megaraid_mbox.c
609
610
611 /**
612 * megaraid_io_attach - attach a device with the IO subsystem
613 * @adapter : controller's soft state
614 *
615 * Attach this device with the IO subsystem.
616 */
617 static int
618 megaraid_io_attach(adapter_t *adapter)
619 {
620 struct Scsi_Host *host;
621
622 // Initialize SCSI Host structure
> 623 host = scsi_host_alloc(&megaraid_template_g, 8, &pdev->dev);
624 if (!host) {
625 con_log(CL_ANN, (KERN_WARNING
626 "megaraid mbox: scsi_host_alloc failed\n"));
627
628 return -1;
629 }
630
631 SCSIHOST2ADAP(host) = (caddr_t)adapter;
632 adapter->host = host;
633
634 host->irq = adapter->irq;
635 host->unique_id = adapter->unique_id;
636 host->can_queue = adapter->max_cmds;
637 host->this_id = adapter->init_id;
638 host->sg_tablesize = adapter->sglen;
639 host->max_sectors = adapter->max_sectors;
640 host->cmd_per_lun = adapter->cmd_per_lun;
641 host->max_channel = adapter->max_channel;
642 host->max_id = adapter->max_target;
643 host->max_lun = adapter->max_lun;
644
645
646 // notify mid-layer about the new controller
647 if (scsi_add_host(host, &adapter->pdev->dev)) {
648
649 con_log(CL_ANN, (KERN_WARNING
650 "megaraid mbox: scsi_add_host failed\n"));
651
652 scsi_host_put(host);
653
654 return -1;
655 }
656
657 scsi_scan_host(host);
658
659 return 0;
660 }
661
--
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-06-10 3:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-10 3:38 drivers/scsi/megaraid/megaraid_mbox.c:623:51: error: use of undeclared identifier 'pdev' 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.