diff options
| author | Dan Williams <dan.j.williams@intel.com> | 2011-09-23 19:43:45 -0400 |
|---|---|---|
| committer | James Bottomley <JBottomley@Parallels.com> | 2011-10-02 13:47:40 -0400 |
| commit | d962480e9a061505637bb16543d49e247349e25d (patch) | |
| tree | e6734a7376a95e2dcc84a2e0223088e109bac8ff | |
| parent | 11e16364aaac4544dd26ca56d399c954cc95d7a5 (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>
| -rw-r--r-- | include/scsi/libsas.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index ac9d80c93c68..d455fa96dc8c 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) | |||
| 413 | return 3 * device + bit; | 413 | return 3 * device + bit; |
| 414 | } | 414 | } |
| 415 | 415 | ||
| 416 | #ifdef CONFIG_SCSI_SAS_HOST_SMP | ||
| 416 | int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count); | 417 | int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count); |
| 418 | #else | ||
| 419 | static inline int try_test_sas_gpio_gp_bit(unsigned int od, u8 *data, u8 index, u8 count) | ||
| 420 | { | ||
| 421 | return -1; | ||
| 422 | } | ||
| 423 | #endif | ||
| 417 | 424 | ||
| 418 | /* ---------- Tasks ---------- */ | 425 | /* ---------- Tasks ---------- */ |
| 419 | /* | 426 | /* |
