Re: [PATCH 02/11] qla2xxx: Cleanup TMF code translation from qla_target.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/11/17, 12:05 PM, "Bart Van Assche" <bart.vanassche@xxxxxxxxxxx> wrote:

>On 12/23/2016 08:23 PM, Himanshu Madhani wrote:
>>  static int tcm_qla2xxx_handle_tmr(struct qla_tgt_mgmt_cmd *mcmd, uint32_t lun,
>> -	uint8_t tmr_func, uint32_t tag)
>> +	uint16_t tmr_func, uint32_t tag)
>>  {
>>  	struct qla_tgt_sess *sess = mcmd->sess;
>>  	struct se_cmd *se_cmd = &mcmd->se_cmd;
>> +	int transl_tmr_func;
>> +
>> +	switch (tmr_func) {
>> +	case QLA_TGT_ABTS:
>> +		pr_debug("%ld: ABTS received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_ABORT_TASK;
>> +		break;
>> +	case QLA_TGT_2G_ABORT_TASK:
>> +		pr_debug("%ld: 2G Abort Task received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_ABORT_TASK;
>> +		break;
>> +	case QLA_TGT_CLEAR_ACA:
>> +		pr_debug("%ld: CLEAR_ACA received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_CLEAR_ACA;
>> +		break;
>> +	case QLA_TGT_TARGET_RESET:
>> +		pr_debug("%ld: TARGET_RESET received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_TARGET_WARM_RESET;
>> +		break;
>> +	case QLA_TGT_LUN_RESET:
>> +		pr_debug("%ld: LUN_RESET received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_LUN_RESET;
>> +		break;
>> +	case QLA_TGT_CLEAR_TS:
>> +		pr_debug("%ld: CLEAR_TS received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_CLEAR_TASK_SET;
>> +		break;
>> +	case QLA_TGT_ABORT_TS:
>> +		pr_debug("%ld: ABORT_TS received\n", sess->vha->host_no);
>> +		transl_tmr_func = TMR_ABORT_TASK_SET;
>> +		break;
>> +	default:
>> +		pr_debug("%ld: Unknown task mgmt fn 0x%x\n",
>> +		    sess->vha->host_no, tmr_func);
>> +		return -ENOSYS;
>> +		break;
>> +	}
>>  
>>  	return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd,
>>  			tmr_func, GFP_ATOMIC, tag, TARGET_SCF_ACK_KREF);
>
>Hello Himanshu and Quinn,
>
>This patch introduces a new compiler warning when building with W=1,
>namely that transl_tmr_func is set but not used. Please review the code.

Sure. Will update patch. 

>Thanks,
>
>Bart.
��.n��������+%������w��{.n�����{������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux