]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/scsi/libsas.h
[SCSI] libsas: fix try_test_sas_gpio_gp_bit() build error
[linux-2.6.git] / include / scsi / libsas.h
index af0a1deac9301fd5766546bcea595bb1ce93ad58..d455fa96dc8c0b1e5ed935e2ae1ce189369b7700 100644 (file)
@@ -142,8 +142,11 @@ struct expander_device {
        u16    ex_change_count;
        u16    max_route_indexes;
        u8     num_phys;
+
+       u8     t2t_supp:1;
        u8     configuring:1;
        u8     conf_route_table:1;
+
        u8     enclosure_logical_id[8];
 
        struct ex_phy *ex_phy;
@@ -410,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 ---------- */
 /*