From: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> commit 68a3a9102a689 removed unused host code but forgot to remove them from the corresponding hostbyte_table[]. Fix it by removing unused hostcode strings and add missing DID_TRANSPORT_MARGINAL string. Fixes: 68a3a9102a689 ("scsi: core: Remove useless host error codes") Signed-off-by: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> --- drivers/scsi/constants.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" }; const char *scsi_hostbyte_string(int result) { -- 2.41.0.rc2