Re: [PATCH v2] scsi: mpi3mr: select CONFIG_SCSI_SAS_ATTRS

From: Martin K. Petersen
Date: Fri Oct 21 2022 - 23:52:43 EST


On Mon, 17 Oct 2022 16:55:17 +0200 (CEST), Michal Kubecek wrote:

> Starting with commit 42fc9fee116f ("scsi: mpi3mr: Add helper functions to
> manage device's port"), kernel configured with CONFIG_SCSI_MPI3MR=m and
> CONFIG_SCSI_SAS_ATTRS=n fails to build because modpost cannot find symbols
> used in mpi3mr_transport.c:
>
> ERROR: modpost: "sas_port_alloc_num" [drivers/scsi/mpi3mr/mpi3mr.ko] undefined!
> ERROR: modpost: "sas_remove_host" [drivers/scsi/mpi3mr/mpi3mr.ko] undefined!
> ERROR: modpost: "sas_phy_alloc" [drivers/scsi/mpi3mr/mpi3mr.ko] undefined!
> ERROR: modpost: "sas_phy_free" [drivers/scsi/mpi3mr/mpi3mr.ko] undefined!
> ...
>
> [...]

Applied to 6.1/scsi-fixes, thanks!

[1/1] scsi: mpi3mr: select CONFIG_SCSI_SAS_ATTRS
https://git.kernel.org/mkp/scsi/c/65244389b1b3

--
Martin K. Petersen Oracle Linux Engineering