On 10/15/24 11:39 AM, himanshu.madhani@xxxxxxxxxx wrote:
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c index 340785536998..b74c3f505300 100644 --- a/drivers/scsi/constants.c +++ b/drivers/scsi/constants.c @@ -403,8 +403,8 @@ static const char * const hostbyte_table[]={ "DID_OK", "DID_NO_CONNECT", "DID_BUS_BUSY", "DID_TIME_OUT", "DID_BAD_TARGET", "DID_ABORT", "DID_PARITY", "DID_ERROR", "DID_RESET", "DID_BAD_INTR", "DID_PASSTHROUGH", "DID_SOFT_ERROR", "DID_IMM_RETRY", "DID_REQUEUE", -"DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST", "DID_TARGET_FAILURE", -"DID_NEXUS_FAILURE", "DID_ALLOC_FAILURE", "DID_MEDIUM_ERROR" }; +"DID_TRANSPORT_DISRUPTED", "DID_TRANSPORT_FAILFAST", +"DID_TRANSPORT_MARGINAL" };
That doesn't look right. "DID_TRANSPORT_MARGINAL" occurs at the wrong position in the array. Please use designated initializers instead of a traditional array initialization list. Thanks, Bart.