Cleanup and compile fix for breakage reported by Bart Van Assche <bvanassche@acm.org>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4272 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2012-05-02 18:42:30 +00:00
parent 1d6daae29e
commit b3ca5afd06
2 changed files with 6 additions and 1 deletions

View File

@@ -941,7 +941,6 @@ static int vdisk_attach_tgt(struct scst_tgt_dev *tgt_dev)
virt_dev->fd = NULL;
out:
TRACE_EXIT_RES(res);
return res;
}

View File

@@ -67,6 +67,12 @@ static int strncasecmp(const char *s1, const char *s2, size_t n)
}
#endif
#if !((LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 30)) && defined(SCSI_EXEC_REQ_FIFO_DEFINED)) && !defined(HAVE_SG_COPY)
static int sg_copy(struct scatterlist *dst_sg, struct scatterlist *src_sg,
int nents_to_copy, size_t copy_len,
enum km_type d_km_type, enum km_type s_km_type);
#endif
static void scst_destroy_put_cmd(struct scst_cmd *cmd);
struct scst_sdbops;