linux/drivers/scsi/mpi3mr
Michal Kubecek 65244389b1 scsi: mpi3mr: Select CONFIG_SCSI_SAS_ATTRS
Starting with commit 42fc9fee11 ("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/20221017145517.93BCB6043B@lion.mk-sys.cz
Fixes: 42fc9fee11 ("scsi: mpi3mr: Add helper functions to manage device's port")
Acked-by: Sathya Prakash Veerichetty <sathya.prakash@broadcom.com>
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2022-10-22 03:14:51 +00:00
..
mpi scsi: mpi3mr: Update mpi3 header files 2022-09-25 13:49:51 -04:00
Kconfig scsi: mpi3mr: Select CONFIG_SCSI_SAS_ATTRS 2022-10-22 03:14:51 +00:00
Makefile scsi: mpi3mr: Add framework to add phys to STL 2022-08-22 23:34:05 -04:00
mpi3mr_app.c scsi: mpi3mr: Fix kernel-doc 2022-06-01 22:43:26 -04:00
mpi3mr_debug.h scsi: mpi3mr: Add config and transport related debug flags 2022-08-22 23:34:04 -04:00
mpi3mr_fw.c scsi: mpi3mr: Remove unnecessary cast 2022-09-25 14:22:56 -04:00
mpi3mr_os.c SCSI misc on 20221007 2022-10-07 12:33:18 -07:00
mpi3mr_transport.c scsi: mpi3mr: Fix error code in mpi3mr_transport_smp_handler() 2022-09-15 22:04:02 -04:00
mpi3mr.h scsi: mpi3mr: Update driver version to 8.2.0.3.0 2022-09-25 13:49:52 -04:00