mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-04 15:16:57 +00:00
qla2x00t: Avoid that checkpatch complains that (foo*) should be (foo *)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+2
-2
@@ -61,7 +61,7 @@ static inline void bsg_job_done_backport(struct fc_bsg_job *job, int result,
|
|||||||
void
|
void
|
||||||
qla2x00_bsg_job_done(void *data, void *ptr, int res)
|
qla2x00_bsg_job_done(void *data, void *ptr, int res)
|
||||||
{
|
{
|
||||||
srb_t *sp = (srb_t*)ptr;
|
srb_t *sp = ptr;
|
||||||
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
||||||
#ifndef NEW_LIBFC_API
|
#ifndef NEW_LIBFC_API
|
||||||
struct fc_bsg_job *bsg_job = sp->u.bsg_job;
|
struct fc_bsg_job *bsg_job = sp->u.bsg_job;
|
||||||
@@ -78,7 +78,7 @@ qla2x00_bsg_job_done(void *data, void *ptr, int res)
|
|||||||
void
|
void
|
||||||
qla2x00_bsg_sp_free(void *data, void *ptr)
|
qla2x00_bsg_sp_free(void *data, void *ptr)
|
||||||
{
|
{
|
||||||
srb_t *sp = (srb_t*)ptr;
|
srb_t *sp = ptr;
|
||||||
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
||||||
#ifndef NEW_LIBFC_API
|
#ifndef NEW_LIBFC_API
|
||||||
struct fc_bsg_job *bsg_job = sp->u.bsg_job;
|
struct fc_bsg_job *bsg_job = sp->u.bsg_job;
|
||||||
|
|||||||
+1
-1
@@ -401,7 +401,7 @@ extern int qla2x00_request_irqs(struct qla_hw_data *, struct rsp_que *);
|
|||||||
extern void qla2x00_free_irqs(scsi_qla_host_t *);
|
extern void qla2x00_free_irqs(scsi_qla_host_t *);
|
||||||
|
|
||||||
extern int qla2x00_get_data_rate(scsi_qla_host_t *);
|
extern int qla2x00_get_data_rate(scsi_qla_host_t *);
|
||||||
extern char* qla2x00_get_link_speed_str(struct qla_hw_data *);
|
extern char *qla2x00_get_link_speed_str(struct qla_hw_data *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Global Function Prototypes in qla_sup.c source file.
|
* Global Function Prototypes in qla_sup.c source file.
|
||||||
|
|||||||
+2
-2
@@ -122,7 +122,7 @@ qla2x00_async_iocb_timeout(void *data)
|
|||||||
static void
|
static void
|
||||||
qla2x00_async_login_sp_done(void *data, void *ptr, int res)
|
qla2x00_async_login_sp_done(void *data, void *ptr, int res)
|
||||||
{
|
{
|
||||||
srb_t *sp = (srb_t*)ptr;
|
srb_t *sp = ptr;
|
||||||
struct srb_iocb *lio = &sp->u.iocb_cmd;
|
struct srb_iocb *lio = &sp->u.iocb_cmd;
|
||||||
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
||||||
|
|
||||||
@@ -272,7 +272,7 @@ done:
|
|||||||
static void
|
static void
|
||||||
qla2x00_async_tm_cmd_done(void *data, void *ptr, int res)
|
qla2x00_async_tm_cmd_done(void *data, void *ptr, int res)
|
||||||
{
|
{
|
||||||
srb_t *sp = (srb_t*)ptr;
|
srb_t *sp = ptr;
|
||||||
struct srb_iocb *iocb = &sp->u.iocb_cmd;
|
struct srb_iocb *iocb = &sp->u.iocb_cmd;
|
||||||
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
struct scsi_qla_host *vha = (scsi_qla_host_t *)data;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
|
|||||||
+4
-4
@@ -1174,7 +1174,7 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req,
|
|||||||
#endif
|
#endif
|
||||||
uint16_t comp_status;
|
uint16_t comp_status;
|
||||||
uint32_t fw_status[3];
|
uint32_t fw_status[3];
|
||||||
uint8_t* fw_sts_ptr;
|
uint8_t *fw_sts_ptr;
|
||||||
|
|
||||||
sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
|
sp = qla2x00_get_sp_from_handle(vha, func, req, pkt);
|
||||||
if (!sp)
|
if (!sp)
|
||||||
@@ -1200,8 +1200,8 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req,
|
|||||||
}
|
}
|
||||||
|
|
||||||
comp_status = fw_status[0] = le16_to_cpu(pkt->comp_status);
|
comp_status = fw_status[0] = le16_to_cpu(pkt->comp_status);
|
||||||
fw_status[1] = le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->error_subcode_1);
|
fw_status[1] = le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->error_subcode_1);
|
||||||
fw_status[2] = le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->error_subcode_2);
|
fw_status[2] = le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->error_subcode_2);
|
||||||
|
|
||||||
/* return FC_CTELS_STATUS_OK and leave the decoding of the ELS/CT
|
/* return FC_CTELS_STATUS_OK and leave the decoding of the ELS/CT
|
||||||
* fc payload to the caller
|
* fc payload to the caller
|
||||||
@@ -1220,7 +1220,7 @@ qla24xx_els_ct_entry(scsi_qla_host_t *vha, struct req_que *req,
|
|||||||
#else
|
#else
|
||||||
bsg_reply->reply_payload_rcv_len =
|
bsg_reply->reply_payload_rcv_len =
|
||||||
#endif
|
#endif
|
||||||
le16_to_cpu(((struct els_sts_entry_24xx*)pkt)->total_byte_count);
|
le16_to_cpu(((struct els_sts_entry_24xx *)pkt)->total_byte_count);
|
||||||
|
|
||||||
ql_dbg(ql_dbg_user, vha, 0x503f,
|
ql_dbg(ql_dbg_user, vha, 0x503f,
|
||||||
"ELS-CT pass-through-%s error hdl=%x comp_status-status=0x%x "
|
"ELS-CT pass-through-%s error hdl=%x comp_status-status=0x%x "
|
||||||
|
|||||||
+1
-1
@@ -672,7 +672,7 @@ static void
|
|||||||
qla2x00_sp_compl(void *data, void *ptr, int res)
|
qla2x00_sp_compl(void *data, void *ptr, int res)
|
||||||
{
|
{
|
||||||
struct qla_hw_data *ha = (struct qla_hw_data *)data;
|
struct qla_hw_data *ha = (struct qla_hw_data *)data;
|
||||||
srb_t *sp = (srb_t*)ptr;
|
srb_t *sp = ptr;
|
||||||
struct scsi_cmnd *cmd = GET_CMD_SP(sp);
|
struct scsi_cmnd *cmd = GET_CMD_SP(sp);
|
||||||
|
|
||||||
cmd->result = res;
|
cmd->result = res;
|
||||||
|
|||||||
Reference in New Issue
Block a user