All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Sumit Saxena <sumit.saxena@broadcom.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	0day robot <lkp@intel.com>
Subject: drivers/scsi/megaraid/megaraid_mbox.c:623:51: error: use of undeclared identifier 'pdev'
Date: Wed, 10 Jun 2026 05:38:23 +0200	[thread overview]
Message-ID: <202606100515.4ene4mEh-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-06-10  3:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202606100515.4ene4mEh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sumit.saxena@broadcom.com \
    /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 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.