This callback was only used by the direct ramdisk driver, which is no longer present. Signed-off-by: Andy Grover <agrover@xxxxxxxxxx> --- drivers/target/target_core_transport.c | 8 -------- include/target/target_core_transport.h | 5 ----- 2 files changed, 0 insertions(+), 13 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 132e5f5..0d7556d 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -3737,8 +3737,6 @@ static inline void transport_free_pages(struct se_cmd *cmd) if (cmd->se_cmd_flags & SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC) free_page = 0; - if (cmd->se_dev->transport->do_se_mem_map) - free_page = 0; for_each_sg(cmd->t_data_sg, sg, cmd->t_data_nents, count) { /* @@ -3973,12 +3971,6 @@ transport_generic_get_mem(struct se_cmd *cmd) struct page *page; int i = 0; - /* - * If the device uses memory mapping this is enough. - */ - if (cmd->se_dev->transport->do_se_mem_map) - return 0; - if (!length) return 0; diff --git a/include/target/target_core_transport.h b/include/target/target_core_transport.h index 7d10fb5..b9f7766 100644 --- a/include/target/target_core_transport.h +++ b/include/target/target_core_transport.h @@ -340,11 +340,6 @@ struct se_subsystem_api { */ sector_t (*get_blocks)(struct se_device *); /* - * do_se_mem_map(): - */ - int (*do_se_mem_map)(struct se_task *, struct list_head *, void *, - struct se_mem *, struct se_mem **, u32 *, u32 *); - /* * get_sense_buffer(): */ unsigned char *(*get_sense_buffer)(struct se_task *); -- 1.7.1 -- 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