diff options
Diffstat (limited to 'include/scsi')
-rw-r--r-- | include/scsi/scsi_device.h | 1 | ||||
-rw-r--r-- | include/scsi/scsi_dh.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index 1f3a4c8044c0..9af48cbf0036 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
@@ -187,6 +187,7 @@ struct scsi_device_handler { | |||
187 | void (*detach)(struct scsi_device *); | 187 | void (*detach)(struct scsi_device *); |
188 | int (*activate)(struct scsi_device *); | 188 | int (*activate)(struct scsi_device *); |
189 | int (*prep_fn)(struct scsi_device *, struct request *); | 189 | int (*prep_fn)(struct scsi_device *, struct request *); |
190 | int (*set_params)(struct scsi_device *, const char *); | ||
190 | }; | 191 | }; |
191 | 192 | ||
192 | struct scsi_dh_data { | 193 | struct scsi_dh_data { |
diff --git a/include/scsi/scsi_dh.h b/include/scsi/scsi_dh.h index 33efce20c26c..ff2407405b42 100644 --- a/include/scsi/scsi_dh.h +++ b/include/scsi/scsi_dh.h | |||
@@ -60,6 +60,7 @@ extern int scsi_dh_activate(struct request_queue *); | |||
60 | extern int scsi_dh_handler_exist(const char *); | 60 | extern int scsi_dh_handler_exist(const char *); |
61 | extern int scsi_dh_attach(struct request_queue *, const char *); | 61 | extern int scsi_dh_attach(struct request_queue *, const char *); |
62 | extern void scsi_dh_detach(struct request_queue *); | 62 | extern void scsi_dh_detach(struct request_queue *); |
63 | extern int scsi_dh_set_params(struct request_queue *, const char *); | ||
63 | #else | 64 | #else |
64 | static inline int scsi_dh_activate(struct request_queue *req) | 65 | static inline int scsi_dh_activate(struct request_queue *req) |
65 | { | 66 | { |
@@ -77,4 +78,8 @@ static inline void scsi_dh_detach(struct request_queue *q) | |||
77 | { | 78 | { |
78 | return; | 79 | return; |
79 | } | 80 | } |
81 | static inline int scsi_dh_set_params(struct request_queue *req, const char *params) | ||
82 | { | ||
83 | return -SCSI_DH_NOSYS; | ||
84 | } | ||
80 | #endif | 85 | #endif |