* [linux-next:master 8111/9010] drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:5143:39: error: 'struct dev_pm_info' has no member named 'usage_count'
@ 2023-04-05 3:01 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-05 3:01 UTC (permalink / raw)
To: Yihang Li
Cc: oe-kbuild-all, Linux Memory Management List, Martin K. Petersen,
Xiang Chen
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 6a53bda3aaf3de5edeea27d0b1d8781d067640b6
commit: e368d38cb9524415ceb5b2b54a0dacdfb9f73b6c [8111/9010] scsi: hisi_sas: Exit suspend state when usage count is greater than 0
config: ia64-buildonly-randconfig-r002-20230403 (https://download.01.org/0day-ci/archive/20230405/202304051046.WgcGP2Ga-lkp@intel.com/config)
compiler: ia64-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=e368d38cb9524415ceb5b2b54a0dacdfb9f73b6c
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout e368d38cb9524415ceb5b2b54a0dacdfb9f73b6c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/scsi/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304051046.WgcGP2Ga-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/scsi/hisi_sas/hisi_sas_v3_hw.c: In function '_suspend_v3_hw':
>> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:5143:39: error: 'struct dev_pm_info' has no member named 'usage_count'
5143 | if (atomic_read(&device->power.usage_count)) {
| ^
vim +5143 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c
5118
5119 static int _suspend_v3_hw(struct device *device)
5120 {
5121 struct pci_dev *pdev = to_pci_dev(device);
5122 struct sas_ha_struct *sha = pci_get_drvdata(pdev);
5123 struct hisi_hba *hisi_hba = sha->lldd_ha;
5124 struct device *dev = hisi_hba->dev;
5125 struct Scsi_Host *shost = hisi_hba->shost;
5126 int rc;
5127
5128 if (!pdev->pm_cap) {
5129 dev_err(dev, "PCI PM not supported\n");
5130 return -ENODEV;
5131 }
5132
5133 if (test_and_set_bit(HISI_SAS_RESETTING_BIT, &hisi_hba->flags))
5134 return -1;
5135
5136 dev_warn(dev, "entering suspend state\n");
5137
5138 scsi_block_requests(shost);
5139 set_bit(HISI_SAS_REJECT_CMD_BIT, &hisi_hba->flags);
5140 flush_workqueue(hisi_hba->wq);
5141 interrupt_disable_v3_hw(hisi_hba);
5142
> 5143 if (atomic_read(&device->power.usage_count)) {
5144 dev_err(dev, "PM suspend: host status cannot be suspended\n");
5145 rc = -EBUSY;
5146 goto err_out;
5147 }
5148
5149 rc = disable_host_v3_hw(hisi_hba);
5150 if (rc) {
5151 dev_err(dev, "PM suspend: disable host failed rc=%d\n", rc);
5152 goto err_out_recover_host;
5153 }
5154
5155 hisi_sas_init_mem(hisi_hba);
5156
5157 hisi_sas_release_tasks(hisi_hba);
5158
5159 sas_suspend_ha(sha);
5160
5161 dev_warn(dev, "end of suspending controller\n");
5162 return 0;
5163
5164 err_out_recover_host:
5165 enable_host_v3_hw(hisi_hba);
5166 err_out:
5167 interrupt_enable_v3_hw(hisi_hba);
5168 clear_bit(HISI_SAS_REJECT_CMD_BIT, &hisi_hba->flags);
5169 clear_bit(HISI_SAS_RESETTING_BIT, &hisi_hba->flags);
5170 scsi_unblock_requests(shost);
5171 return rc;
5172 }
5173
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-05 3:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 3:01 [linux-next:master 8111/9010] drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:5143:39: error: 'struct dev_pm_info' has no member named 'usage_count' 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