diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa.c b/drivers/platform/msm/ipa/ipa_v3/ipa.c index 6b2bceeca64a..e2da69cf65da 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa.c @@ -3565,7 +3565,7 @@ static int ipa3_q6_clean_q6_flt_tbls(enum ipa_ip_type ip, u32 lcl_hdr_sz; struct ipa_mem_buffer mem; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int i; IPADBG("Entry\n"); @@ -3718,7 +3718,7 @@ static int ipa3_q6_clean_q6_rt_tbls(enum ipa_ip_type ip, u32 lcl_hdr_sz; struct ipa_mem_buffer mem; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int i; IPADBG("Entry\n"); @@ -3846,7 +3846,7 @@ static int ipa3_q6_clean_q6_tables(void) int num_cmds = 0; struct ipahal_reg_fltrt_hash_flush flush; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int i; IPADBG("Entry\n"); @@ -3969,11 +3969,11 @@ static int ipa3_q6_set_ex_path_to_apps(void) struct ipa3_desc *desc; int num_descs = 0; int index; - struct ipahal_imm_cmd_register_write reg_write; + struct ipahal_imm_cmd_register_write reg_write = { 0 }; struct ipahal_imm_cmd_pyld *cmd_pyld; int retval; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int i; desc = kcalloc(ipa3_ctx->ipa_num_pipes + 1, sizeof(struct ipa3_desc), @@ -4357,7 +4357,7 @@ int _ipa_init_hdr_v3_0(void) struct ipahal_imm_cmd_pyld *cmd_pyld[2]; struct ipahal_imm_cmd_dma_shared_mem dma_cmd = { 0 }; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int num_cmds = 0; int i; diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_flt.c b/drivers/platform/msm/ipa/ipa_v3/ipa_flt.c index 549fea8461bd..d8fbc1ea94b1 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_flt.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_flt.c @@ -501,7 +501,7 @@ int __ipa_commit_flt_v3(enum ipa_ip_type ip) u32 tbl_hdr_width; struct ipa3_flt_tbl *tbl; u16 entries; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; tbl_hdr_width = ipahal_get_hw_tbl_hdr_width(); memset(&alloc_params, 0, sizeof(alloc_params)); diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_hdr.c b/drivers/platform/msm/ipa/ipa_v3/ipa_hdr.c index 71143d212235..77b02a6fb929 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_hdr.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_hdr.c @@ -194,7 +194,7 @@ int __ipa_commit_hdr_v3_0(void) u32 proc_ctx_size; u32 proc_ctx_ofst; u32 proc_ctx_size_ddr; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; struct ipahal_reg_valmask valmask; memset(desc, 0, 3 * sizeof(struct ipa3_desc)); diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c b/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c index 7af59e1a0fa8..e9a29ef8aac3 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_hw_stats.c @@ -138,7 +138,7 @@ static void ipa_close_coal_frame(struct ipahal_imm_cmd_pyld **coal_cmd_pyld) { int i; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; i = ipa3_get_ep_mapping(IPA_CLIENT_APPS_WAN_COAL_CONS); reg_write_coal_close.skip_pipeline_clear = false; diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c b/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c index 571c5140dd81..47498e36a351 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_mpm.c @@ -483,7 +483,7 @@ static int ipa_mpm_set_dma_mode(enum ipa_client_type src_pipe, enum ipa_client_type dst_pipe, bool reset) { struct ipahal_imm_cmd_pyld *cmd_pyld[IPA_MPM_NUM_OF_INIT_CMD_DESC]; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; struct ipahal_reg_valmask valmask; struct ipa3_desc desc[IPA_MPM_NUM_OF_INIT_CMD_DESC]; int i, num_cmd = 0, result = 0; diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_nat.c b/drivers/platform/msm/ipa/ipa_v3/ipa_nat.c index 627593c258c7..889a83a0e0e4 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_nat.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_nat.c @@ -1211,7 +1211,7 @@ static int ipa3_nat_send_init_cmd(struct ipahal_imm_cmd_ip_v4_nat_init *cmd, struct ipahal_imm_cmd_pyld *cmd_pyld[IPA_NAT_MAX_NUM_OF_INIT_CMD_DESC]; int i, num_cmd = 0, result; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; IPADBG("\n"); @@ -1314,7 +1314,7 @@ static int ipa3_ipv6ct_send_init_cmd(struct ipahal_imm_cmd_ip_v6_ct_init *cmd) *cmd_pyld[IPA_IPV6CT_MAX_NUM_OF_INIT_CMD_DESC]; int i, num_cmd = 0, result; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; IPADBG("\n"); @@ -1940,7 +1940,7 @@ int ipa3_table_dma_cmd( int result = 0; int i; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int max_dma_table_cmds = IPA_MAX_NUM_OF_TABLE_DMA_CMD_DESC; IPADBG("In\n"); diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_rt.c b/drivers/platform/msm/ipa/ipa_v3/ipa_rt.c index d3266eba3177..3dbde82396a2 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_rt.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_rt.c @@ -486,7 +486,7 @@ int __ipa_commit_rt_v3(enum ipa_ip_type ip) struct ipa3_rt_tbl_set *set; struct ipa3_rt_tbl *tbl; u32 tbl_hdr_width; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; tbl_hdr_width = ipahal_get_hw_tbl_hdr_width(); memset(desc, 0, sizeof(desc)); diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c index 8cec6306521a..0f43a27c7af5 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c @@ -6740,7 +6740,7 @@ int ipa3_tag_process(struct ipa3_desc desc[], int ep_idx; u32 retry_cnt = 0; struct ipahal_reg_valmask valmask; - struct ipahal_imm_cmd_register_write reg_write_coal_close; + struct ipahal_imm_cmd_register_write reg_write_coal_close = { 0 }; int req_num_tag_desc = REQUIRED_TAG_PROCESS_DESCRIPTORS; /** @@ -6971,7 +6971,7 @@ static int ipa3_tag_generate_force_close_desc(struct ipa3_desc desc[], struct ipa_ep_cfg_aggr ep_aggr; int desc_idx = 0; int res; - struct ipahal_imm_cmd_register_write reg_write_agg_close; + struct ipahal_imm_cmd_register_write reg_write_agg_close = {0}; struct ipahal_imm_cmd_pyld *cmd_pyld; struct ipahal_reg_valmask valmask; diff --git a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c index 4d261f862d97..fb2879813d33 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipahal/ipahal.c @@ -848,7 +848,7 @@ struct ipahal_imm_cmd_pyld *ipahal_construct_nop_imm_cmd( enum ipahal_pipeline_clear_option pipline_clr_opt, bool is_atomic_ctx) { - struct ipahal_imm_cmd_register_write cmd; + struct ipahal_imm_cmd_register_write cmd = { 0 }; struct ipahal_imm_cmd_pyld *cmd_pyld; memset(&cmd, 0, sizeof(cmd));