Re: [PATCH] scsi: ufs: ufshcd-pltfrm depends on HAS_IOMEM
From: Martin K. Petersen
Date: Thu Jan 07 2021 - 23:20:47 EST
On Tue, 5 Jan 2021 20:08:22 -0800, Randy Dunlap wrote:
> Building ufshcd-pltfrm.c on arch/s390/ has a linker error since
> S390 does not support IOMEM, so add a dependency on HAS_IOMEM.
>
> s390-linux-ld: drivers/scsi/ufs/ufshcd-pltfrm.o: in function `ufshcd_pltfrm_init':
> ufshcd-pltfrm.c:(.text+0x38e): undefined reference to `devm_platform_ioremap_resource'
>
> where that devm_ function is inside an #ifdef CONFIG_HAS_IOMEM/#endif block.
Applied to 5.11/scsi-fixes, thanks!
[1/1] scsi: ufs: ufshcd-pltfrm depends on HAS_IOMEM
https://git.kernel.org/mkp/scsi/c/5e6ddadf7637
--
Martin K. Petersen Oracle Linux Engineering