Re: [PATCH] scsi: hisi_sas: work around build failure in suspend function

From: Martin K. Petersen
Date: Tue Apr 18 2023 - 23:22:03 EST


On Wed, 05 Apr 2023 10:36:04 +0200, Arnd Bergmann wrote:

> The suspend/resume functions in this driver seem to have multiple
> problems, the latest one just got introduced by a bugfix:
>
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c: In function '_suspend_v3_hw':
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:5142:39: error: 'struct dev_pm_info' has no member named 'usage_count'
> 5142 | if (atomic_read(&device->power.usage_count)) {
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c: In function '_suspend_v3_hw':
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:5142:39: error: 'struct dev_pm_info' has no member named 'usage_count'
> 5142 | if (atomic_read(&device->power.usage_count)) {
>
> [...]

Applied to 6.4/scsi-queue, thanks!

[1/1] scsi: hisi_sas: work around build failure in suspend function
https://git.kernel.org/mkp/scsi/c/e01e2290f094

--
Martin K. Petersen Oracle Linux Engineering