Commit d962480e authored by Dan Williams's avatar Dan Williams Committed by James Bottomley

[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: default avatarRandy Dunlap <rdunlap@xenotime.net>
Tested-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 11e16364
...@@ -413,7 +413,14 @@ static inline unsigned int to_sas_gpio_od(int device, int bit) ...@@ -413,7 +413,14 @@ static inline unsigned int to_sas_gpio_od(int device, int bit)
return 3 * device + 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); 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 ---------- */ /* ---------- Tasks ---------- */
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment