Re: [PATCH] scsi: hisi_sas: Fix sparse warnings in prep_ata_v3_hw()

From: Martin K. Petersen

Date: Mon Apr 20 2026 - 22:40:02 EST



Yihang,

> In prep_ata_v3_hw(), add cpu_to_le32() to fix warning:
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:1448:26: sparse: sparse: invalid assignment: |=
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:1448:26: sparse: left side has type restricted __le32
> drivers/scsi/hisi_sas/hisi_sas_v3_hw.c:1448:26: sparse: right side has type unsigned int

Applied to 7.1/scsi-staging, thanks!

--
Martin K. Petersen