Re: [PATCH 06/15] qla2xxx: Fix compilation issue in PPC systems

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

 




> On Dec 1, 2020, at 2:27 AM, Nilesh Javali <njavali@xxxxxxxxxxx> wrote:
> 
> From: Arun Easi <aeasi@xxxxxxxxxxx>
> 
> Fix compile time errors reported on PPC systems.
> 

What is the error? Can you please add details in commit message for reference 

> Signed-off-by: Arun Easi <aeasi@xxxxxxxxxxx>
> Signed-off-by: Nilesh Javali <njavali@xxxxxxxxxxx>
> ---
> drivers/scsi/qla2xxx/qla_nx.c  | 2 +-
> drivers/scsi/qla2xxx/qla_nx2.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
> index b3ba0de5d4fb..fd994e36200a 100644
> --- a/drivers/scsi/qla2xxx/qla_nx.c
> +++ b/drivers/scsi/qla2xxx/qla_nx.c
> @@ -965,7 +965,7 @@ qla82xx_read_status_reg(struct qla_hw_data *ha, uint32_t *val)
> static int
> qla82xx_flash_wait_write_finish(struct qla_hw_data *ha)
> {
> -	uint32_t val;
> +	uint32_t val = 0;
> 	int i, ret;
> 	scsi_qla_host_t *vha = pci_get_drvdata(ha->pdev);
> 
> diff --git a/drivers/scsi/qla2xxx/qla_nx2.c b/drivers/scsi/qla2xxx/qla_nx2.c
> index 01ccd4526707..68a16c95dcb7 100644
> --- a/drivers/scsi/qla2xxx/qla_nx2.c
> +++ b/drivers/scsi/qla2xxx/qla_nx2.c
> @@ -139,7 +139,7 @@ qla8044_poll_wait_for_ready(struct scsi_qla_host *vha, uint32_t addr1,
> 	uint32_t mask)
> {
> 	unsigned long timeout;
> -	uint32_t temp;
> +	uint32_t temp = 0;
> 
> 	/* jiffies after 100ms */
> 	timeout = jiffies + msecs_to_jiffies(TIMEOUT_100_MS);
> @@ -2594,7 +2594,7 @@ qla8044_minidump_process_rdmux(struct scsi_qla_host *vha,
> 	struct qla8044_minidump_entry_hdr *entry_hdr,
> 	uint32_t **d_ptr)
> {
> -	uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value;
> +	uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value = 0;
> 	struct qla8044_minidump_entry_mux *mux_hdr;
> 	uint32_t *data_ptr = *d_ptr;
> 
> -- 
> 2.19.0.rc0
> 

--
Himanshu Madhani	 Oracle Linux Engineering





[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