mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
Fixed checkpatch complaints about whitespace and one sparse warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -260,7 +260,7 @@ Each target subdirectory contains the following entries:
|
||||
IPv6 addresses need to be enclosed in [] brackets. To remove
|
||||
redirection, provide an empty string. For example:
|
||||
echo "10.170.77.2:32600 temp" >/sys/kernel/scst_tgt/targets/iscsi/iqn.2006-10.net.vlnb:tgt/redirect
|
||||
will temporarily redirect login to portal 10.170.77.2 and port 32600.
|
||||
will temporarily redirect login to portal 10.170.77.2 and port 32600.
|
||||
|
||||
- tid - TID of this target.
|
||||
|
||||
@@ -817,7 +817,7 @@ in/out in the kernel's module Makefile:
|
||||
|
||||
- CONFIG_SCST_ISCSI_DEBUG_DIGEST_FAILURES - simulates digest failures in
|
||||
random places.
|
||||
|
||||
|
||||
|
||||
Creating version of put_page_callback patch for your kernel
|
||||
-----------------------------------------------------------
|
||||
|
||||
@@ -157,7 +157,7 @@ Each target subdirectory contains the following entries:
|
||||
IPv6 addresses need to be enclosed in [] brackets. To remove
|
||||
redirection, provide an empty string. For example:
|
||||
echo "10.170.77.2:32600 temp" >/sys/kernel/scst_tgt/targets/iscsi/iqn.2006-10.net.vlnb:tgt/redirect
|
||||
will temporarily redirect login to portal 10.170.77.2 and port 32600.
|
||||
will temporarily redirect login to portal 10.170.77.2 and port 32600.
|
||||
|
||||
- tid - TID of this target.
|
||||
|
||||
|
||||
@@ -750,8 +750,8 @@ static void iscsi_set_resid(struct iscsi_cmnd *rsp, bool no_read_transfer,
|
||||
|
||||
if ((req_hdr->flags & ISCSI_CMD_READ) &&
|
||||
(req_hdr->flags & ISCSI_CMD_WRITE)) {
|
||||
struct iscsi_scsi_rsp_hdr *rsp_hdr;
|
||||
int in_transf_len, in_exp_transf_len;
|
||||
struct iscsi_scsi_rsp_hdr *rsp_hdr;
|
||||
int in_transf_len, in_exp_transf_len;
|
||||
|
||||
rsp_hdr = (struct iscsi_scsi_rsp_hdr *)&rsp->pdu.bhs;
|
||||
|
||||
@@ -3516,7 +3516,7 @@ static int iscsi_report_aen(struct scst_aen *aen)
|
||||
return res;
|
||||
}
|
||||
|
||||
int iscsi_get_initiator_port_transport_id(struct scst_session *scst_sess,
|
||||
static int iscsi_get_initiator_port_transport_id(struct scst_session *scst_sess,
|
||||
uint8_t **transport_id)
|
||||
{
|
||||
struct iscsi_session *sess;
|
||||
|
||||
@@ -1863,7 +1863,7 @@ static int q2t_pre_xmit_response(struct q2t_cmd *cmd,
|
||||
|
||||
if (xmit_type & Q2T_XMIT_STATUS) {
|
||||
if ((cmd->data_direction & SCST_DATA_READ) ||
|
||||
(cmd->data_direction & SCST_DATA_WRITE) ) {
|
||||
(cmd->data_direction & SCST_DATA_WRITE)) {
|
||||
int expected = scst_cmd_get_expected_transfer_len(scst_cmd);
|
||||
/* Bidirectional transfers not supported (yet) */
|
||||
if (cmd->data_direction & SCST_DATA_READ)
|
||||
|
||||
Reference in New Issue
Block a user