On Tue, Feb 15, 2011 at 12:12 AM, Nicholas A. Bellinger <nab@xxxxxxxxxxxxxxx> wrote: > The usage of ref_cmd here will be used in for-39 code, so this should be > kept in place for now.. I'm curious to see it. Does the patch below make sense ? It removes an unused argument from transport_get_lun_for_cmd(). diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index 5da051a..53f31fd 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -56,7 +56,6 @@ static void se_dev_stop(struct se_device *dev); int transport_get_lun_for_cmd( struct se_cmd *se_cmd, - unsigned char *cdb, u32 unpacked_lun) { struct se_dev_entry *deve; diff --git a/include/target/target_core_device.h b/include/target/target_core_device.h index 52b18a5..d9745bf 100644 --- a/include/target/target_core_device.h +++ b/include/target/target_core_device.h @@ -1,7 +1,7 @@ #ifndef TARGET_CORE_DEVICE_H #define TARGET_CORE_DEVICE_H -extern int transport_get_lun_for_cmd(struct se_cmd *, unsigned char *, u32); +extern int transport_get_lun_for_cmd(struct se_cmd *, u32); extern int transport_get_lun_for_tmr(struct se_cmd *, u32); extern struct se_dev_entry *core_get_se_deve_from_rtpi( struct se_node_acl *, u16); -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html