Skip to content

Commit 6524438

Browse files
mkubecekmartinkpetersen
authored andcommitted
scsi: mpi3mr: Select CONFIG_SCSI_SAS_ATTRS
Starting with commit 42fc9fe ("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! ... Select CONFIG_SCSI_SAS_ATTRS when CONFIG_SCSI_MPI3MR is enabled to prevent inconsistent configs. Link: https://lore.kernel.org/r/[email protected] Fixes: 42fc9fe ("scsi: mpi3mr: Add helper functions to manage device's port") Acked-by: Sathya Prakash Veerichetty <[email protected]> Signed-off-by: Michal Kubecek <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 4652b58 commit 6524438

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/scsi/mpi3mr/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ config SCSI_MPI3MR
44
tristate "Broadcom MPI3 Storage Controller Device Driver"
55
depends on PCI && SCSI
66
select BLK_DEV_BSGLIB
7+
select SCSI_SAS_ATTRS
78
help
89
MPI3 based Storage & RAID Controllers Driver.

0 commit comments

Comments
 (0)