Skip to content

Commit

Permalink
[SCSI] libsas: fix try_test_sas_gpio_gp_bit() build error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
  • Loading branch information
djbw authored and James Bottomley committed Oct 2, 2011
1 parent 11e1636 commit d962480
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/scsi/libsas.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 ---------- */
/*
Expand Down

0 comments on commit d962480

Please sign in to comment.