From ca97893240bdd2bdb24815f6112eda57db062cf6 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 5 Jun 2010 16:44:27 +0000 Subject: [PATCH] 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 --- iscsi-scst/README | 4 ++-- iscsi-scst/README_in-tree | 2 +- iscsi-scst/kernel/iscsi.c | 6 +++--- qla2x00t/qla2x00-target/qla2x00t.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iscsi-scst/README b/iscsi-scst/README index bd4f320d5..3075d6c55 100644 --- a/iscsi-scst/README +++ b/iscsi-scst/README @@ -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 ----------------------------------------------------------- diff --git a/iscsi-scst/README_in-tree b/iscsi-scst/README_in-tree index 1d673d3a7..d92beb07e 100644 --- a/iscsi-scst/README_in-tree +++ b/iscsi-scst/README_in-tree @@ -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. diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 5e08ab9bf..3b0698d14 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -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; diff --git a/qla2x00t/qla2x00-target/qla2x00t.c b/qla2x00t/qla2x00-target/qla2x00t.c index 7d97bcc6b..ac5970e6f 100644 --- a/qla2x00t/qla2x00-target/qla2x00t.c +++ b/qla2x00t/qla2x00-target/qla2x00t.c @@ -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)