aboutsummaryrefslogtreecommitdiff
path: root/include/scsi/libsas.h
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-09-23 16:43:45 -0700
committerJames Bottomley <JBottomley@Parallels.com>2011-10-02 12:47:40 -0500
commitd962480e9a061505637bb16543d49e247349e25d (patch)
treee6734a7376a95e2dcc84a2e0223088e109bac8ff /include/scsi/libsas.h
parent11e16364aaac4544dd26ca56d399c954cc95d7a5 (diff)
[SCSI] libsas: fix try_test_sas_gpio_gp_bit() build error
If the user has disabled CONFIG_SCSI_SAS_HOST_SMP then libsas drivers will not be receiving smp-gpio frames and do not need this lookup code. Reported-by: Randy Dunlap <rdunlap@xenotime.net> Tested-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Dan Williams <dan.j.williams@intel.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r--include/scsi/libsas.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h
index ac9d80c93c6..d455fa96dc8 100644
--- a/include/scsi/libsas.h
+++ b/include/scsi/libsas.h
@@ -413,7 +413,14 @@ static inline unsigned int to_sas_gpio_od(int device, int bit)
return 3 * device + bit;
}
+#ifdef CONFIG_SCSI_SAS_HOST_SMP
int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count);
+#else
+static inline int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count)
+{
+ return -1;
+}
+#endif
/* ---------- Tasks ---------- */
/*