mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
Merge branch 'svn-trunk'
This commit is contained in:
@@ -134,6 +134,15 @@ static inline void bio_set_dev(struct bio *bio, struct block_device *bdev)
|
||||
#define BIO_MAX_VECS BIO_MAX_PAGES
|
||||
#endif
|
||||
|
||||
/* <linux/blk_types.h> */
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 14, 0)
|
||||
enum {
|
||||
REQ_OP_SCSI_IN = REQ_OP_DRV_IN,
|
||||
REQ_OP_SCSI_OUT = REQ_OP_DRV_OUT,
|
||||
};
|
||||
#endif
|
||||
|
||||
/* <linux/blk-mq.h> */
|
||||
|
||||
static inline unsigned int scst_blk_rq_cpu(struct request *rq)
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
diff --git a/drivers/Kconfig b/drivers/Kconfig
|
||||
index aa43b91..c96860e 100644
|
||||
index 8bad63417a50..a61b1804fcf3 100644
|
||||
--- a/drivers/Kconfig
|
||||
+++ b/drivers/Kconfig
|
||||
@@ -24,6 +24,8 @@ source "drivers/ide/Kconfig"
|
||||
@@ -39,6 +39,8 @@ source "drivers/ata/Kconfig"
|
||||
|
||||
source "drivers/scsi/Kconfig"
|
||||
source "drivers/md/Kconfig"
|
||||
|
||||
+source "drivers/scst/Kconfig"
|
||||
+
|
||||
source "drivers/ata/Kconfig"
|
||||
source "drivers/target/Kconfig"
|
||||
|
||||
source "drivers/md/Kconfig"
|
||||
source "drivers/message/fusion/Kconfig"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
diff --git a/drivers/Makefile b/drivers/Makefile
|
||||
index 31cf17dee252..b45c17aee468 100644
|
||||
index 27c018bdf4de..6fc8c24fd0d6 100644
|
||||
--- a/drivers/Makefile
|
||||
+++ b/drivers/Makefile
|
||||
@@ -75,6 +75,7 @@ obj-$(CONFIG_DAX) += dax/
|
||||
obj-$(CONFIG_DMA_SHARED_BUFFER) += dma-buf/
|
||||
obj-$(CONFIG_NUBUS) += nubus/
|
||||
obj-y += macintosh/
|
||||
+obj-$(CONFIG_SCST) += scst/
|
||||
obj-$(CONFIG_IDE) += ide/
|
||||
@@ -81,6 +81,7 @@ obj-y += macintosh/
|
||||
obj-y += scsi/
|
||||
obj-y += nvme/
|
||||
obj-$(CONFIG_ATA) += ata/
|
||||
+obj-$(CONFIG_SCST) += scst/
|
||||
obj-$(CONFIG_TARGET_CORE) += target/
|
||||
obj-$(CONFIG_MTD) += mtd/
|
||||
obj-$(CONFIG_SPI) += spi/
|
||||
|
||||
@@ -13849,9 +13849,11 @@ int scst_obtain_device_parameters(struct scst_device *dev,
|
||||
goto brk;
|
||||
}
|
||||
switch (driver_byte(rc)) {
|
||||
#if defined(DRIVER_BUSY) && defined(DRIVER_SOFT)
|
||||
case DRIVER_BUSY:
|
||||
case DRIVER_SOFT:
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
goto brk;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user