All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: himanshu.madhani@oracle.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [RFC v1 6/8] scsi: Add multipath suppport for device handler
Date: Sat, 9 Nov 2024 15:29:04 +0800	[thread overview]
Message-ID: <202411091556.VY6C3maf-lkp@intel.com> (raw)
In-Reply-To: <20241109044529.992935-7-himanshu.madhani@oracle.com>

Hi,

[This is a private test report for your RFC patch.]
kernel test robot noticed the following build errors:

[auto build test ERROR on 128faa1845a2d5b0178b986f3bd18fb38cc08cc2]

url:    https://github.com/intel-lab-lkp/linux/commits/himanshu-madhani-oracle-com/scsi-Add-multipath-device-support/20241109-124908
base:   128faa1845a2d5b0178b986f3bd18fb38cc08cc2
patch link:    https://lore.kernel.org/r/20241109044529.992935-7-himanshu.madhani%40oracle.com
patch subject: [RFC v1 6/8] scsi: Add multipath suppport for device handler
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241109/202411091556.VY6C3maf-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241109/202411091556.VY6C3maf-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/202411091556.VY6C3maf-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/scsi/device_handler/scsi_dh_alua.c: In function 'alua_alloc_pg':
>> drivers/scsi/device_handler/scsi_dh_alua.c:262:58: error: 'struct scsi_device' has no member named 'mpath_pg_data'
     262 |                 struct scsi_mpath_dh_data *dh_data = sdev->mpath_pg_data;
         |                                                          ^~
>> drivers/scsi/device_handler/scsi_dh_alua.c:273:27: error: 'struct Scsi_Host' has no member named 'mpath_alua_grpid'
     273 |                 sdev->host->mpath_alua_grpid = pg->group_id;
         |                           ^~


vim +262 drivers/scsi/device_handler/scsi_dh_alua.c

   207	
   208	/*
   209	 * alua_alloc_pg - Allocate a new port_group structure
   210	 * @sdev: scsi device
   211	 * @group_id: port group id
   212	 * @tpgs: target port group settings
   213	 *
   214	 * Allocate a new port_group structure for a given
   215	 * device.
   216	 */
   217	static struct alua_port_group *alua_alloc_pg(struct scsi_device *sdev,
   218						     int group_id, int tpgs)
   219	{
   220		struct alua_port_group *pg, *tmp_pg;
   221	
   222		pg = kzalloc(sizeof(struct alua_port_group), GFP_KERNEL);
   223		if (!pg)
   224			return ERR_PTR(-ENOMEM);
   225	
   226		pg->device_id_len = scsi_vpd_lun_id(sdev, pg->device_id_str,
   227						    sizeof(pg->device_id_str));
   228		if (pg->device_id_len <= 0) {
   229			/*
   230			 * TPGS supported but no device identification found.
   231			 * Generate private device identification.
   232			 */
   233			sdev_printk(KERN_INFO, sdev,
   234				    "%s: No device descriptors found\n",
   235				    ALUA_DH_NAME);
   236			pg->device_id_str[0] = '\0';
   237			pg->device_id_len = 0;
   238		}
   239		pg->group_id = group_id;
   240		pg->tpgs = tpgs;
   241		pg->state = SCSI_ACCESS_STATE_OPTIMAL;
   242		pg->valid_states = TPGS_SUPPORT_ALL;
   243		if (optimize_stpg)
   244			pg->flags |= ALUA_OPTIMIZE_STPG;
   245		kref_init(&pg->kref);
   246		INIT_DELAYED_WORK(&pg->rtpg_work, alua_rtpg_work);
   247		INIT_LIST_HEAD(&pg->rtpg_list);
   248		INIT_LIST_HEAD(&pg->node);
   249		INIT_LIST_HEAD(&pg->dh_list);
   250		spin_lock_init(&pg->lock);
   251	
   252		spin_lock(&port_group_lock);
   253		tmp_pg = alua_find_get_pg(pg->device_id_str, pg->device_id_len,
   254					  group_id);
   255		if (tmp_pg) {
   256			spin_unlock(&port_group_lock);
   257			kfree(pg);
   258			return tmp_pg;
   259		}
   260	
   261		if (scsi_mpath_enabled(sdev)) {
 > 262			struct scsi_mpath_dh_data *dh_data = sdev->mpath_pg_data;
   263	
   264			dh_data->group_id = pg->group_id;
   265			dh_data->tpgs = pg->tpgs;
   266			dh_data->state = pg->state;
   267			dh_data->valid_states = pg->valid_states;
   268			dh_data->prefrence = pg->pref;
   269			dh_data->is_active = 1;
   270			dh_data->device_id_str = kstrdup(pg->device_id_str, GFP_KERNEL);
   271			dh_data->device_id_len = pg->device_id_len;
   272	
 > 273			sdev->host->mpath_alua_grpid = pg->group_id;
   274		}
   275	
   276		list_add(&pg->node, &port_group_list);
   277		spin_unlock(&port_group_lock);
   278	
   279		return pg;
   280	}
   281	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2024-11-09  7:29 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-09  4:45 [RFC v1 0/8] scsi: Multipath support for scsi disk devices himanshu.madhani
2024-11-09  4:45 ` [RFC v1 1/8] scsi: Add multipath device support himanshu.madhani
2024-11-12 21:09   ` Bart Van Assche
2024-11-13  0:20     ` Himanshu Madhani
2024-11-09  4:45 ` [RFC v1 2/8] scsi: create multipath capable scsi host himanshu.madhani
2024-11-10 21:11   ` Bart Van Assche
2024-11-09  4:45 ` [RFC v1 3/8] scsi: Add error handling capability for multipath himanshu.madhani
2024-11-09  4:45 ` [RFC v1 4/8] scsi: Complete multipath request himanshu.madhani
2024-11-09  4:45 ` [RFC v1 5/8] scsi: Add scsi multipath sysfs hooks himanshu.madhani
2024-11-09  4:45 ` [RFC v1 6/8] scsi: Add multipath suppport for device handler himanshu.madhani
2024-11-09  7:29   ` kernel test robot [this message]
2024-11-09  8:10   ` kernel test robot
2024-11-09  4:45 ` [RFC v1 7/8] scsi: Add multipath disk init code for sd driver himanshu.madhani
2024-11-09  8:51   ` kernel test robot
2024-11-09  4:45 ` [RFC v1 8/8] scsi_debug: Add module parameter for ALUA multipath himanshu.madhani
2024-11-10 21:15 ` [RFC v1 0/8] scsi: Multipath support for scsi disk devices Bart Van Assche
2024-11-12 20:46   ` Himanshu Madhani
2024-11-22 14:27 ` Hannes Reinecke

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=202411091556.VY6C3maf-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=himanshu.madhani@oracle.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.