summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/scsi/scsi_priv.h')
-rw-r--r--kernel/drivers/scsi/scsi_priv.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/drivers/scsi/scsi_priv.h b/kernel/drivers/scsi/scsi_priv.h
index e3902fc66..4d01cdb1b 100644
--- a/kernel/drivers/scsi/scsi_priv.h
+++ b/kernel/drivers/scsi/scsi_priv.h
@@ -170,6 +170,17 @@ static inline void scsi_autopm_put_host(struct Scsi_Host *h) {}
extern struct async_domain scsi_sd_pm_domain;
extern struct async_domain scsi_sd_probe_domain;
+/* scsi_dh.c */
+#ifdef CONFIG_SCSI_DH
+int scsi_dh_add_device(struct scsi_device *sdev);
+void scsi_dh_release_device(struct scsi_device *sdev);
+void scsi_dh_remove_device(struct scsi_device *sdev);
+#else
+static inline int scsi_dh_add_device(struct scsi_device *sdev) { return 0; }
+static inline void scsi_dh_release_device(struct scsi_device *sdev) { }
+static inline void scsi_dh_remove_device(struct scsi_device *sdev) { }
+#endif
+
/*
* internal scsi timeout functions: for use by mid-layer and transport
* classes.