diff options
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index d6a0074b9dc3..c4e8b9aa3827 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -952,7 +952,6 @@ mpt_put_msg_frame_hi_pri(u8 cb_idx, MPT_ADAPTER *ioc, MPT_FRAME_HDR *mf) | |||
952 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ | 952 | /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/ |
953 | /** | 953 | /** |
954 | * mpt_free_msg_frame - Place MPT request frame back on FreeQ. | 954 | * mpt_free_msg_frame - Place MPT request frame back on FreeQ. |
955 | * @handle: Handle of registered MPT protocol driver | ||
956 | * @ioc: Pointer to MPT adapter structure | 955 | * @ioc: Pointer to MPT adapter structure |
957 | * @mf: Pointer to MPT request frame | 956 | * @mf: Pointer to MPT request frame |
958 | * | 957 | * |
@@ -4563,7 +4562,7 @@ WaitForDoorbellReply(MPT_ADAPTER *ioc, int howlong, int sleepFlag) | |||
4563 | failcnt++; | 4562 | failcnt++; |
4564 | hword = le16_to_cpu(CHIPREG_READ32(&ioc->chip->Doorbell) & 0x0000FFFF); | 4563 | hword = le16_to_cpu(CHIPREG_READ32(&ioc->chip->Doorbell) & 0x0000FFFF); |
4565 | /* don't overflow our IOC hs_reply[] buffer! */ | 4564 | /* don't overflow our IOC hs_reply[] buffer! */ |
4566 | if (u16cnt < sizeof(ioc->hs_reply) / sizeof(ioc->hs_reply[0])) | 4565 | if (u16cnt < ARRAY_SIZE(ioc->hs_reply)) |
4567 | hs_reply[u16cnt] = hword; | 4566 | hs_reply[u16cnt] = hword; |
4568 | CHIPREG_WRITE32(&ioc->chip->IntStatus, 0); | 4567 | CHIPREG_WRITE32(&ioc->chip->IntStatus, 0); |
4569 | } | 4568 | } |
@@ -5422,7 +5421,6 @@ mpt_raid_phys_disk_pg0(MPT_ADAPTER *ioc, u8 phys_disk_num, pRaidPhysDiskPage0_t | |||
5422 | /** | 5421 | /** |
5423 | * mpt_findImVolumes - Identify IDs of hidden disks and RAID Volumes | 5422 | * mpt_findImVolumes - Identify IDs of hidden disks and RAID Volumes |
5424 | * @ioc: Pointer to a Adapter Strucutre | 5423 | * @ioc: Pointer to a Adapter Strucutre |
5425 | * @portnum: IOC port number | ||
5426 | * | 5424 | * |
5427 | * Return: | 5425 | * Return: |
5428 | * 0 on success | 5426 | * 0 on success |
@@ -6939,7 +6937,6 @@ mpt_fc_log_info(MPT_ADAPTER *ioc, u32 log_info) | |||
6939 | /** | 6937 | /** |
6940 | * mpt_spi_log_info - Log information returned from SCSI Parallel IOC. | 6938 | * mpt_spi_log_info - Log information returned from SCSI Parallel IOC. |
6941 | * @ioc: Pointer to MPT_ADAPTER structure | 6939 | * @ioc: Pointer to MPT_ADAPTER structure |
6942 | * @mr: Pointer to MPT reply frame | ||
6943 | * @log_info: U32 LogInfo word from the IOC | 6940 | * @log_info: U32 LogInfo word from the IOC |
6944 | * | 6941 | * |
6945 | * Refer to lsi/sp_log.h. | 6942 | * Refer to lsi/sp_log.h. |
@@ -7176,7 +7173,7 @@ union loginfo_type { | |||
7176 | 7173 | ||
7177 | sas_loginfo.loginfo = log_info; | 7174 | sas_loginfo.loginfo = log_info; |
7178 | if ((sas_loginfo.dw.bus_type != 3 /*SAS*/) && | 7175 | if ((sas_loginfo.dw.bus_type != 3 /*SAS*/) && |
7179 | (sas_loginfo.dw.originator < sizeof(originator_str)/sizeof(char*))) | 7176 | (sas_loginfo.dw.originator < ARRAY_SIZE(originator_str))) |
7180 | return; | 7177 | return; |
7181 | 7178 | ||
7182 | originator_desc = originator_str[sas_loginfo.dw.originator]; | 7179 | originator_desc = originator_str[sas_loginfo.dw.originator]; |
@@ -7185,21 +7182,21 @@ union loginfo_type { | |||
7185 | 7182 | ||
7186 | case 0: /* IOP */ | 7183 | case 0: /* IOP */ |
7187 | if (sas_loginfo.dw.code < | 7184 | if (sas_loginfo.dw.code < |
7188 | sizeof(iop_code_str)/sizeof(char*)) | 7185 | ARRAY_SIZE(iop_code_str)) |
7189 | code_desc = iop_code_str[sas_loginfo.dw.code]; | 7186 | code_desc = iop_code_str[sas_loginfo.dw.code]; |
7190 | break; | 7187 | break; |
7191 | case 1: /* PL */ | 7188 | case 1: /* PL */ |
7192 | if (sas_loginfo.dw.code < | 7189 | if (sas_loginfo.dw.code < |
7193 | sizeof(pl_code_str)/sizeof(char*)) | 7190 | ARRAY_SIZE(pl_code_str)) |
7194 | code_desc = pl_code_str[sas_loginfo.dw.code]; | 7191 | code_desc = pl_code_str[sas_loginfo.dw.code]; |
7195 | break; | 7192 | break; |
7196 | case 2: /* IR */ | 7193 | case 2: /* IR */ |
7197 | if (sas_loginfo.dw.code >= | 7194 | if (sas_loginfo.dw.code >= |
7198 | sizeof(ir_code_str)/sizeof(char*)) | 7195 | ARRAY_SIZE(ir_code_str)) |
7199 | break; | 7196 | break; |
7200 | code_desc = ir_code_str[sas_loginfo.dw.code]; | 7197 | code_desc = ir_code_str[sas_loginfo.dw.code]; |
7201 | if (sas_loginfo.dw.subcode >= | 7198 | if (sas_loginfo.dw.subcode >= |
7202 | sizeof(raid_sub_code_str)/sizeof(char*)) | 7199 | ARRAY_SIZE(raid_sub_code_str)) |
7203 | break; | 7200 | break; |
7204 | if (sas_loginfo.dw.code == 0) | 7201 | if (sas_loginfo.dw.code == 0) |
7205 | sub_code_desc = | 7202 | sub_code_desc = |