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

Martin K. Petersen
2026-04-21T02:39:12Z

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