diff options
Diffstat (limited to 'drivers/scsi/libsas/sas_internal.h')
-rw-r--r-- | drivers/scsi/libsas/sas_internal.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_internal.h b/drivers/scsi/libsas/sas_internal.h index 2b8213b1832d..b4f9368f116a 100644 --- a/drivers/scsi/libsas/sas_internal.h +++ b/drivers/scsi/libsas/sas_internal.h | |||
@@ -45,7 +45,7 @@ | |||
45 | void sas_scsi_recover_host(struct Scsi_Host *shost); | 45 | void sas_scsi_recover_host(struct Scsi_Host *shost); |
46 | 46 | ||
47 | int sas_show_class(enum sas_class class, char *buf); | 47 | int sas_show_class(enum sas_class class, char *buf); |
48 | int sas_show_proto(enum sas_proto proto, char *buf); | 48 | int sas_show_proto(enum sas_protocol proto, char *buf); |
49 | int sas_show_linkrate(enum sas_linkrate linkrate, char *buf); | 49 | int sas_show_linkrate(enum sas_linkrate linkrate, char *buf); |
50 | int sas_show_oob_mode(enum sas_oob_mode oob_mode, char *buf); | 50 | int sas_show_oob_mode(enum sas_oob_mode oob_mode, char *buf); |
51 | 51 | ||
@@ -80,6 +80,20 @@ struct domain_device *sas_find_dev_by_rphy(struct sas_rphy *rphy); | |||
80 | 80 | ||
81 | void sas_hae_reset(struct work_struct *work); | 81 | void sas_hae_reset(struct work_struct *work); |
82 | 82 | ||
83 | #ifdef CONFIG_SCSI_SAS_HOST_SMP | ||
84 | extern int sas_smp_host_handler(struct Scsi_Host *shost, struct request *req, | ||
85 | struct request *rsp); | ||
86 | #else | ||
87 | static inline int sas_smp_host_handler(struct Scsi_Host *shost, | ||
88 | struct request *req, | ||
89 | struct request *rsp) | ||
90 | { | ||
91 | shost_printk(KERN_ERR, shost, | ||
92 | "Cannot send SMP to a sas host (not enabled in CONFIG)\n"); | ||
93 | return -EINVAL; | ||
94 | } | ||
95 | #endif | ||
96 | |||
83 | static inline void sas_queue_event(int event, spinlock_t *lock, | 97 | static inline void sas_queue_event(int event, spinlock_t *lock, |
84 | unsigned long *pending, | 98 | unsigned long *pending, |
85 | struct work_struct *work, | 99 | struct work_struct *work, |