]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: cxlflash: Isolate external module dependencies
authorUma Krishnan <ukrishn@linux.vnet.ibm.com>
Fri, 11 May 2018 19:06:19 +0000 (14:06 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 18 May 2018 15:22:10 +0000 (11:22 -0400)
commitddd41b4ff67a0d3d912f73138ba4d9a39383d4cd
treed8fec09c3c66c80e73a0052581e12ffde228a177
parent89cb9d1287d84b9280d138f77c4e04c55c8c419d
scsi: cxlflash: Isolate external module dependencies

Depending on the underlying transport, cxlflash has a dependency on either
the CXL or OCXL drivers, which are enabled via their Kconfig option.
Instead of having a module wide dependency on these config options, it is
better to isolate the object modules that are dependent on the CXL and OCXL
drivers and adjust the module dependencies accordingly.

This commit isolates the object files that are dependent on CXL and/or
OCXL. The cxl/ocxl fops used in the core driver are tucked under an ifdef to
avoid compilation errors.

Signed-off-by: Uma Krishnan <ukrishn@linux.vnet.ibm.com>
Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/cxlflash/Kconfig
drivers/scsi/cxlflash/Makefile
drivers/scsi/cxlflash/lunmgt.c
drivers/scsi/cxlflash/main.c
drivers/scsi/cxlflash/main.h
drivers/scsi/cxlflash/superpipe.c
drivers/scsi/cxlflash/vlun.c