proc: mandate ->proc_lseek in "struct proc_ops"
[linux-2.6-microblaze.git] / drivers / target / target_core_xcopy.c
index 66d6f1d..d31ed07 100644 (file)
@@ -554,7 +554,7 @@ static int target_xcopy_setup_pt_cmd(
        }
        cmd->se_cmd_flags |= SCF_SE_LUN_CMD;
 
-       if (target_cmd_init_cdb(cmd, cdb))
+       if (target_cmd_init_cdb(cmd, cdb, GFP_KERNEL))
                return -EINVAL;
 
        cmd->tag = 0;
@@ -615,8 +615,8 @@ static int target_xcopy_read_source(
        pr_debug("XCOPY: Built READ_16: LBA: %llu Sectors: %u Length: %u\n",
                (unsigned long long)src_lba, src_sectors, length);
 
-       transport_init_se_cmd(se_cmd, &xcopy_pt_tfo, &xcopy_pt_sess, length,
-                             DMA_FROM_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0);
+       __target_init_cmd(se_cmd, &xcopy_pt_tfo, &xcopy_pt_sess, length,
+                         DMA_FROM_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0);
 
        rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, src_dev, &cdb[0],
                                remote_port);
@@ -660,8 +660,8 @@ static int target_xcopy_write_destination(
        pr_debug("XCOPY: Built WRITE_16: LBA: %llu Sectors: %u Length: %u\n",
                (unsigned long long)dst_lba, dst_sectors, length);
 
-       transport_init_se_cmd(se_cmd, &xcopy_pt_tfo, &xcopy_pt_sess, length,
-                             DMA_TO_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0);
+       __target_init_cmd(se_cmd, &xcopy_pt_tfo, &xcopy_pt_sess, length,
+                         DMA_TO_DEVICE, 0, &xpt_cmd.sense_buffer[0], 0);
 
        rc = target_xcopy_setup_pt_cmd(&xpt_cmd, xop, dst_dev, &cdb[0],
                                remote_port);